Add tip command
authormpm@selenic.com
Tue, 17 May 2005 13:37:15 -0800
changeset 89 4cd9145d5b53
parent 88 d9913355961d
child 90 ab9ebff09dcd
Add tip command
hg
--- a/hg	Tue May 17 12:40:24 2005 -0800
+++ b/hg	Tue May 17 13:37:15 2005 -0800
@@ -290,6 +290,11 @@
         print "description:"
         print changes[4]
 
+elif cmd == "tip":
+    n = repo.changelog.tip()
+    t = repo.changelog.rev(n)
+    ui.status("%d:%s\n" % (t, hg.hex(n)))
+
 elif cmd == "log":
     if args:
         r = repo.file(args[0])