changeset 308:075619d00dd7

Add tip to tags -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Add tip to tags This makes a tag for the current tip that always overrides what's in the tags files. manifest hash: b1a17d0238aa84ee30773be79e4a32dca321a0c3 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCqfzVywK+sNU5EO8RAgdEAJ41VvLHIIzNZbIC/nHmoJOpZL0+4gCfRxpC eSq341nfmMZNcrqmGYYALe4= =miH1 -----END PGP SIGNATURE-----
author mpm@selenic.com
date Fri, 10 Jun 2005 12:49:25 -0800
parents 3863e08d597c
children 61414da06fe5
files mercurial/hg.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hg.py	Fri Jun 10 12:48:12 2005 -0800
+++ b/mercurial/hg.py	Fri Jun 10 12:49:25 2005 -0800
@@ -365,8 +365,8 @@
                             n, k = l.split(" ")
                             self.tags[k] = bin(n)
             except KeyError: pass
+            self.tags['tip'] = self.changelog.tip()
         try:
-            if key == 'tip': return self.changelog.tip()
             return self.tags[key]
         except KeyError:
             return self.changelog.lookup(key)