Add 'local' tags
authormpm@selenic.com
Thu, 23 Jun 2005 18:48:50 -0800
changeset 454 58d57594b802
parent 453 7a3a3952c431
child 455 8d43dfdfb514
Add 'local' tags -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Add 'local' tags Local tags are repository-private tags that override the usual tags. They're not version controlled. manifest hash: cce27c853d36f03adba4bd543a37c8faf1a0c749 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCu3SSywK+sNU5EO8RAlVAAJ9sTyIW2EkzBPSPp+3uU6a+6DUC6QCcD0vE jiwqhtfCuvG5LLs54LkzamY= =D9IP -----END PGP SIGNATURE-----
mercurial/hg.py
--- a/mercurial/hg.py	Thu Jun 23 17:51:03 2005 -0800
+++ b/mercurial/hg.py	Thu Jun 23 18:48:50 2005 -0800
@@ -394,6 +394,9 @@
                             n, k = l.split(" ", 1)
                             self.tagscache[k.strip()] = bin(n)
             except KeyError: pass
+            for k, n in self.ui.configitems("tags"):
+                self.tagscache[k] = bin(n)
+                
             self.tagscache['tip'] = self.changelog.tip()
 
         return self.tagscache