Mercurial > public > mercurial-scm > hg
comparison mercurial/hg.py @ 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 | 3b17056b72dc |
comparison
equal
deleted
inserted
replaced
307:3863e08d597c | 308:075619d00dd7 |
---|---|
363 for l in fl.revision(r).splitlines(): | 363 for l in fl.revision(r).splitlines(): |
364 if l: | 364 if l: |
365 n, k = l.split(" ") | 365 n, k = l.split(" ") |
366 self.tags[k] = bin(n) | 366 self.tags[k] = bin(n) |
367 except KeyError: pass | 367 except KeyError: pass |
368 self.tags['tip'] = self.changelog.tip() | |
368 try: | 369 try: |
369 if key == 'tip': return self.changelog.tip() | |
370 return self.tags[key] | 370 return self.tags[key] |
371 except KeyError: | 371 except KeyError: |
372 return self.changelog.lookup(key) | 372 return self.changelog.lookup(key) |
373 | 373 |
374 def join(self, f): | 374 def join(self, f): |