commit: add debug message regarding manifest reuse
authorYuya Nishihara <yuya@tcha.org>
Sat, 07 Jul 2018 22:32:49 +0900
changeset 39109 a915db9a5e77
parent 39108 d2d89d31cbb5
child 39110 f0c2653ca706
commit: add debug message regarding manifest reuse
mercurial/localrepo.py
tests/test-convert-svn-encoding.t
--- a/mercurial/localrepo.py	Sun Aug 12 12:16:08 2018 +0900
+++ b/mercurial/localrepo.py	Sat Jul 07 22:32:49 2018 +0900
@@ -2052,6 +2052,7 @@
 
             if ctx.manifestnode():
                 # reuse an existing manifest revision
+                self.ui.debug('reusing known manifest\n')
                 mn = ctx.manifestnode()
                 files = ctx.files()
             elif ctx.files():
@@ -2100,6 +2101,7 @@
                                 added, drop)
                 files = changed + removed
             else:
+                self.ui.debug('reusing manifest from p1 (no file change)\n')
                 mn = p1.manifestnode()
                 files = []
 
--- a/tests/test-convert-svn-encoding.t	Sun Aug 12 12:16:08 2018 +0900
+++ b/tests/test-convert-svn-encoding.t	Sat Jul 07 22:32:49 2018 +0900
@@ -52,6 +52,7 @@
   5 init projA
   source: svn:afeb9c47-92ff-4c0c-9f72-e1f6eb8ac9af/trunk@1
   converting: 0/6 revisions (0.00%)
+  reusing manifest from p1 (no file change)
   committing changelog
   updating the branch cache
   4 hello
@@ -118,6 +119,7 @@
   converting: 4/6 revisions (66.67%)
   reparent to file:/*/$TESTTMP/svn-repo/branches/branch%C3%A9 (glob)
   scanning paths: /branches/branch\xc3\xa9 0/1 paths (0.00%) (esc)
+  reusing manifest from p1 (no file change)
   committing changelog
   updating the branch cache
   0 branch to branch?e
@@ -125,6 +127,7 @@
   converting: 5/6 revisions (83.33%)
   reparent to file:/*/$TESTTMP/svn-repo/branches/branch%C3%A9e (glob)
   scanning paths: /branches/branch\xc3\xa9e 0/1 paths (0.00%) (esc)
+  reusing manifest from p1 (no file change)
   committing changelog
   updating the branch cache
   reparent to file:/*/$TESTTMP/svn-repo (glob)