diff mercurial/localrepo.py @ 23749:a387b0390082

localrepo: show headline notes in commitctx before showing filenames commitctx already showed notes with filenames but didn't provide any context. It is just as relevant to know when manifest or changelog is committed. So, in addition to filenames, also show headlines 'committing files:', 'committing manifest' and 'committing changelog'.
author Mads Kiilerich <madski@unity3d.com>
date Fri, 18 Apr 2014 13:33:20 +0200
parents e3a0e7e21f54
children 885c0290f7d5
line wrap: on
line diff
--- a/mercurial/localrepo.py	Fri Aug 15 19:43:32 2014 +0200
+++ b/mercurial/localrepo.py	Fri Apr 18 13:33:20 2014 +0200
@@ -1432,6 +1432,7 @@
                 changed = []
                 removed = list(ctx.removed())
                 linkrev = len(self)
+                self.ui.note(_("committing files:\n"))
                 for f in sorted(ctx.modified() + ctx.added()):
                     self.ui.note(f + "\n")
                     try:
@@ -1453,6 +1454,7 @@
                         raise
 
                 # update manifest
+                self.ui.note(_("committing manifest\n"))
                 removed = [f for f in sorted(removed) if f in m1 or f in m2]
                 drop = [f for f in removed if f in m]
                 for f in drop:
@@ -1466,6 +1468,7 @@
                 files = []
 
             # update changelog
+            self.ui.note(_("committing changelog\n"))
             self.changelog.delayupdate(tr)
             n = self.changelog.add(mn, files, ctx.description(),
                                    trp, p1.node(), p2.node(),