[Bug 5067] New: Cannot pull from a bundle if local repository contains secret

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Wed Jan 27 09:59:29 UTC 2016


https://bz.mercurial-scm.org/show_bug.cgi?id=5067

            Bug ID: 5067
           Summary: Cannot pull from a bundle if local repository contains
                    secret
           Product: Mercurial
           Version: 3.6.3
          Hardware: PC
                OS: Windows
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at selenic.com
          Reporter: ehumhum.mercurial at gmail.com
                CC: mercurial-devel at selenic.com

I can't pull from a bundle I've just made. The steps to reproduce are described
below. Note that the secret branch needs at least two revisions (if only one,
pull command works fine).

$hg init
$echo test > test
$hg add
$hg commit --message="init_rev"

$echo test >> test
$hg commit --message="rev1"

$echo test_secret >> test
$hg commit --message="rev2_secret"
$echo test_secret >> test
$hg commit --message="rev3_secret"

$hg update 1

$echo test >> test
$hg commit --message="rev4"
$echo test >> test
$hg commit --message="rev5"

$hg phase --rev 2 --secret --force

$hg bundle --all bundle_with_secret_phase.hg

$hg strip 5

$hg pull bundle_with_secret_phase.hg
pulling from bundle_with_secret_phase.hg
searching for changes
abort: 00changelog.i at bff94a72fb0d7528818fadf453f81239e4f21895: filtered node!

#If I change the phase to draft for both secret revisions, then pull command
works fine.
$hg phase --rev 3 --draft --force
$hg pull bundle_with_secret_phase.hg
pulling from bundle_with_secret_phase.hg
searching for changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 1 changes to 1 files
(run 'hg update' to get a working copy)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list