diff extensions/revinfo.py @ 11:b68762aad6ff

Adhere more to Mercurial conventions: print the given name as-is if not found as label for a "path"
author Franz Glasner <hg@dom66.de>
date Sat, 26 Sep 2015 06:32:10 +0200
parents 33899e714b14
children 230cf9ee8ae3
line wrap: on
line diff
--- a/extensions/revinfo.py	Fri Sep 25 23:40:18 2015 +0200
+++ b/extensions/revinfo.py	Sat Sep 26 06:32:10 2015 +0200
@@ -53,6 +53,8 @@
             if name == canonicalpath:
                 msg += "path: %s\n" % util.hidepassword(path.loc)
                 break
+        else:
+            msg += "path: %s\n" % canonicalpath
     if dest:
         with open(dest, "wb") as rfile:
             rfile.write(msg)