Changeset 011be34126b3…
Parent 12559d605d84…
by
Changes to one file · Browse files at 011be34126b3 Showing diff from parent 12559d605d84 Diff from another changeset...
@@ -98,7 +98,9 @@ elif item == 'date':
return hglib.displaytime(ctx.date())
elif item == 'branch':
- return hglib.toutf(ctx.branch())
+ if ctx.node() in self.repo.branchtags().values():
+ return hglib.toutf(ctx.branch())
+ return None
elif item == 'tags':
value = hglib.toutf(', '.join(ctx.tags()))
if len(value) == 0:
|
Loading...