changeset 89:4cd9145d5b53

Add tip command
author mpm@selenic.com
date Tue, 17 May 2005 13:37:15 -0800
parents d9913355961d
children ab9ebff09dcd
files hg
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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])