[PATCH 1 of 3] commit: add debug message regarding manifest reuse
Yuya Nishihara
yuya at tcha.org
Wed Aug 15 00:47:46 UTC 2018
# HG changeset patch
# User Yuya Nishihara <yuya at 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
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 at 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)
More information about the Mercurial-devel
mailing list