An option to have commit print the new changeset id?

Gilles Moris gilles.moris at free.fr
Fri Aug 22 03:21:19 CDT 2008


On Fri August 22 2008 07:59:08 Dirkjan Ochtman wrote:
> 
> Otherwise, a patch would be welcome, you can make it hinge on -v.
> 
> Cheers,
> 
> Dirkjan
> 

Something like this ?

diff -r cd19b4342538 mercurial/commands.py
--- a/mercurial/commands.py     Fri Aug 22 08:55:42 2008 +0200
+++ b/mercurial/commands.py     Fri Aug 22 10:09:54 2008 +0200
@@ -587,6 +587,7 @@
         return
     cl = repo.changelog
     rev = cl.rev(node)
+    ui.note(_('committed changeset %s\n') % short(node))
     parents = cl.parentrevs(rev)
     if rev - 1 in parents:
         # one of the parents was the old tip


Do we need full hash ?
A few test outputs will need to be adjusted ...

Regards,
Gilles.


More information about the Mercurial-devel mailing list