changeset 307:3863e08d597c

add tip to repo.lookup
author mpm@selenic.com
date Fri, 10 Jun 2005 12:48:12 -0800
parents f06a4a3b86a7
children 075619d00dd7
files mercurial/hg.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)