[Bug 4024] New: `hg pull` doesn't work w/ bundles over SSH
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Tue Aug 20 17:28:55 CDT 2013
http://bz.selenic.com/show_bug.cgi?id=4024
Priority: normal
Bug ID: 4024
CC: mercurial-devel at selenic.com
Assignee: bugzilla at selenic.com
Summary: `hg pull` doesn't work w/ bundles over SSH
Severity: bug
Classification: Unclassified
OS: Linux
Reporter: g.gherdovich at gmail.com
Hardware: PC
Status: UNCONFIRMED
Version: 2.6.1
Component: Mercurial
Product: Mercurial
`hg pull ssh://user@host//path/to/bundle`
complains about a missing parent (like the two repos were unrelated), but the
parent is present. Here a repro.
#------------------------------------
# Alice start working.
#------------------------------------
gghh at tosh:~/wat$ mkdir alice
gghh at tosh:~/wat$ cd alice/
gghh at tosh:~/wat/alice$ hg init
gghh at tosh:~/wat/alice$ touch foo ; hg add foo ; hg commit -m foo
#------------------------------------
# Bob clones Alice's repo...
#------------------------------------
gghh at tosh:~/wat/alice$ cd ..
gghh at tosh:~/wat$ hg clone alice bob
updating to branch default
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
gghh at tosh:~/wat$ cd bob
#------------------------------------
# ... and commit something.
#------------------------------------
gghh at tosh:~/wat/bob$ touch bar ; hg add bar ; hg commit -m bar
#------------------------------------
# Bob creates a bundle with his work.
#------------------------------------
gghh at tosh:~/wat/bob$ hg bundle --base 0 ../bob.bundle
1 changesets found
gghh at tosh:~/wat/bob$ cd ..
#------------------------------------
# Alice pulls from Bob's bundle over SSH.
#------------------------------------
gghh at tosh:~/wat$ cd alice/
gghh at tosh:~/wat/alice$ hg pull ssh://gghh@localhost//home/gghh/wat/bob.bundle
pulling from ssh://gghh@localhost//home/gghh/wat/bob.bundle
remote: abort: 00changelog.i at 701a82871ead: unknown parent!
abort: unexpected response: empty string
#------------------------------------
# Uhm... 701a82871ead unknown parent? Alice checks...
#------------------------------------
gghh at tosh:~/wat/alice$ hg log
changeset: 0:701a82871ead
tag: tip
user: gghh
date: Wed Aug 21 00:06:31 2013 +0200
summary: foo
#------------------------------------
# WAT.
# What if I pull w/o SSH?
#------------------------------------
gghh at tosh:~/wat/alice$ hg pull /home/gghh/wat/bob.bundle
pulling from /home/gghh/wat/bob.bundle
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)
gghh at tosh:~/wat/alice$ hg log
changeset: 1:dff2407c76d2
tag: tip
user: gghh
date: Wed Aug 21 00:07:16 2013 +0200
summary: bar
changeset: 0:701a82871ead
user: gghh
date: Wed Aug 21 00:06:31 2013 +0200
summary: foo
#------------------------------------
# Bizarre.
#------------------------------------
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list