[Commented On] D10582: revlog: use revlog.display_id in narrow error message
baymax (Baymax, Your Personal Patch-care Companion)
phabricator at mercurial-scm.org
Tue May 4 01:55:42 UTC 2021
baymax added a comment.
baymax updated this revision to Diff 27497.
✅ refresh by Heptapod after a successful CI run (🐙 💚)
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D10582?vs=27359&id=27497
BRANCH
default
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D10582/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D10582
AFFECTED FILES
mercurial/changegroup.py
tests/test-narrow-pull.t
CHANGE DETAILS
diff --git a/tests/test-narrow-pull.t b/tests/test-narrow-pull.t
--- a/tests/test-narrow-pull.t
+++ b/tests/test-narrow-pull.t
@@ -147,7 +147,7 @@
$ hg clone -q --narrow ssh://user@dummy/master narrow2 --include "f1" -r 0
$ cd narrow2
$ hg pull -q -r 1
- remote: abort: unexpected error: unable to resolve parent while packing '00manifest.i' 1 for changeset 0
+ remote: abort: unexpected error: unable to resolve parent while packing '00manifest' 1 for changeset 0
transaction abort!
rollback completed
abort: pull failed on remote
diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py
--- a/mercurial/changegroup.py
+++ b/mercurial/changegroup.py
@@ -804,10 +804,10 @@
# We failed to resolve a parent for this node, so
# we crash the changegroup construction.
if util.safehasattr(store, 'target'):
- target = store._indexfile
+ target = store.display_id
else:
# some revlog not actually a revlog
- target = store._revlog._indexfile
+ target = store._revlog.display_id
raise error.Abort(
b"unable to resolve parent while packing '%s' %r"
To: marmoute, durin42, #hg-reviewers
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210504/2fb86f29/attachment-0002.html>
More information about the Mercurial-patches
mailing list