Commits

Yuya Nishihara committed 5ead07b

hglib: check name conflicts in getrevisionlabel (fixes #3339)

Comments (0)

Files changed (1)

tortoisehg/util/hglib.py

 
     ctx = repo[rev]
     label = _getfirstrevisionlabel(repo, ctx)
-    if label:
+    if label and ctx == repo[label]:
         return label
 
     return str(rev)