mercurial/commands.py
changeset 6935 03916abdfb64
parent 6934 abb915d9d8db
child 6948 359e93ceee3a
--- a/mercurial/commands.py	Sun Aug 24 22:13:39 2008 +0200
+++ b/mercurial/commands.py	Fri Aug 22 22:32:53 2008 +0200
@@ -590,12 +590,17 @@
     parents = cl.parentrevs(rev)
     if rev - 1 in parents:
         # one of the parents was the old tip
-        return
-    if (parents == (nullrev, nullrev) or
-        len(cl.heads(cl.node(parents[0]))) > 1 and
-        (parents[1] == nullrev or len(cl.heads(cl.node(parents[1]))) > 1)):
+        pass
+    elif (parents == (nullrev, nullrev) or
+          len(cl.heads(cl.node(parents[0]))) > 1 and
+          (parents[1] == nullrev or len(cl.heads(cl.node(parents[1]))) > 1)):
         ui.status(_('created new head\n'))
 
+    if ui.debugflag:
+        ui.write(_('committed changeset %d:%s\n') % (rev,hex(node)))
+    elif ui.verbose:
+        ui.write(_('committed changeset %d:%s\n') % (rev,short(node)))
+
 def copy(ui, repo, *pats, **opts):
     """mark files as copied for the next commit