add tip to repo.lookup
authormpm@selenic.com
Fri, 10 Jun 2005 12:48:12 -0800
changeset 307 3863e08d597c
parent 306 f06a4a3b86a7
child 308 075619d00dd7
add tip to repo.lookup
mercurial/hg.py
--- a/mercurial/hg.py	Fri Jun 10 09:36:38 2005 -0800
+++ b/mercurial/hg.py	Fri Jun 10 12:48:12 2005 -0800
@@ -366,6 +366,7 @@
                             self.tags[k] = bin(n)
             except KeyError: pass
         try:
+            if key == 'tip': return self.changelog.tip()
             return self.tags[key]
         except KeyError:
             return self.changelog.lookup(key)