[Updated] D8481: pullbundles: use unfiltered repo for head/base matching
joerg.sonnenberger (Joerg Sonnenberger)
phabricator at mercurial-scm.org
Thu May 7 15:02:38 UTC 2020
Closed by commit rHGe2432e2ae5c4: pullbundles: use unfiltered repo for head/base matching (authored by joerg.sonnenberger).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D8481?vs=21213&id=21282
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8481/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8481
AFFECTED FILES
mercurial/wireprotov1server.py
tests/test-pull-bundle.t
CHANGE DETAILS
diff --git a/tests/test-pull-bundle.t b/tests/test-pull-bundle.t
--- a/tests/test-pull-bundle.t
+++ b/tests/test-pull-bundle.t
@@ -36,6 +36,8 @@
$ cat <<EOF > .hg/hgrc
> [server]
> pullbundle = True
+ > [experimental]
+ > evolution = True
> [extensions]
> blackbox =
> EOF
@@ -185,3 +187,24 @@
* sending pullbundle "0.hg" (glob)
* sending pullbundle "0.hg" (glob)
$ rm repo/.hg/blackbox.log
+
+Test processing when nodes used in the pullbundle.manifest end up being hidden
+
+ $ hg --repo repo debugobsolete ed1b79f46b9a29f5a6efa59cf12fcfca43bead5a
+ 1 new obsolescence markers
+ obsoleted 1 changesets
+ $ hg serve --repo repo --config server.view=visible -p $HGPORT -d --pid-file=hg.pid -E errors.log
+ $ cat hg.pid >> $DAEMON_PIDS
+ $ hg clone http://localhost:$HGPORT repo-obs
+ requesting all changes
+ adding changesets
+ adding manifests
+ adding file changes
+ adding changesets
+ adding manifests
+ adding file changes
+ added 2 changesets with 2 changes to 2 files
+ new changesets bbd179dfa0a7:effea6de0384
+ updating to branch default
+ 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
+ $ killdaemons.py
diff --git a/mercurial/wireprotov1server.py b/mercurial/wireprotov1server.py
--- a/mercurial/wireprotov1server.py
+++ b/mercurial/wireprotov1server.py
@@ -391,7 +391,7 @@
res = exchange.filterclonebundleentries(repo, res)
if not res:
return None
- cl = repo.changelog
+ cl = repo.unfiltered().changelog
heads_anc = cl.ancestors([cl.rev(rev) for rev in heads], inclusive=True)
common_anc = cl.ancestors([cl.rev(rev) for rev in common], inclusive=True)
compformats = clientcompressionsupport(proto)
To: joerg.sonnenberger, #hg-reviewers, marmoute
Cc: marmoute, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20200507/b7aaa1d1/attachment.html>
More information about the Mercurial-patches
mailing list