Patchwork [1,of,3] commit: add debug message regarding manifest reuse

login
register
mail settings
Submitter Yuya Nishihara
Date Aug. 15, 2018, 12:47 a.m.
Message ID <e11262a80ee6f67bf6a8.1534294066@mimosa>
Download mbox | patch
Permalink /patch/33729/
State Accepted
Headers show

Comments

Yuya Nishihara - Aug. 15, 2018, 12:47 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1530970369 -32400
#      Sat Jul 07 22:32:49 2018 +0900
# Node ID e11262a80ee6f67bf6a8a6c80077800930f673a6
# Parent  8943c1352b6c42777a086f6e4795c30f7f36410c
commit: add debug message regarding manifest reuse

Patch

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -2052,6 +2052,7 @@  class localrepository(object):
 
             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 @@  class localrepository(object):
                                 added, drop)
                 files = changed + removed
             else:
+                self.ui.debug('reusing manifest from p1 (no file change)\n')
                 mn = p1.manifestnode()
                 files = []
 
diff --git a/tests/test-convert-svn-encoding.t b/tests/test-convert-svn-encoding.t
--- a/tests/test-convert-svn-encoding.t
+++ b/tests/test-convert-svn-encoding.t
@@ -52,6 +52,7 @@  Convert while testing all possible outpu
   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 @@  Convert while testing all possible outpu
   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 @@  Convert while testing all possible outpu
   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)