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.
On the description of
brancherit reads the following:The relevant part is the last one, it should
yieldthe "working tree" only if the repository is dirty.It would be fixed with the following (under
brancher.py):I think this make sense, because for
dvc metrics showit is annoying to see the "working tree" when there's no difference from the current branch.