-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
enhancementEnhances DVCEnhances DVCp3-nice-to-haveIt should be done this or next sprintIt should be done this or next sprintrefactoringFactoring and re-factoringFactoring and re-factoringresearch
Description
On the description of brancher it reads the following:
Yields:
str: the display name for the currently selected tree, it could be:
- a git revision identifier
- empty string it there is no branches to iterate over
- "Working Tree" if there are uncommited changes in the SCM repo
The relevant part is the last one, it should yield the "working tree" only if the repository is dirty.
It would be fixed with the following (under brancher.py):
if repo.scm.is_dirty():
yield "working tree"I think this make sense, because for dvc metrics show it is annoying to see the "working tree" when there's no difference from the current branch.
Metadata
Metadata
Assignees
Labels
enhancementEnhances DVCEnhances DVCp3-nice-to-haveIt should be done this or next sprintIt should be done this or next sprintrefactoringFactoring and re-factoringFactoring and re-factoringresearch