pull -r $rev doesn't limit revisions converted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Hg Plugin |
Fix Released
|
Medium
|
Jelmer Vernooij |
Bug Description
Demo:
mwh@grond:tmp$ sh ~/hgrepro.sh
+ rm -rf /home/mwh/
+ mkdir -p /home/mwh/
+ cd /home/mwh/
+ hg init source
+ cd source
+ echo a
+ hg add
adding file
+ hg ci -m a -u user
+ echo b
+ hg ci -m b -u user
+ cd ..
+ bzr init target
Created a standalone tree (format: 2a)
+ cd target
+ bzr pull -r 1 ../source
+N file
All changes applied successfully.
Now on revision 2.
+ bzr log
-------
revno: 2
hg commit: c9768ecc0761cea
committer: user
timestamp: Tue 2010-03-23 13:40:16 +1300
message:
b
-------
revno: 1
hg commit: 4ec524d45d5931d
committer: user
timestamp: Tue 2010-03-23 13:40:16 +1300
message:
a
Jelmer said "I guess when we ask for a branch containing a revision we shouldn't assume that the tip of that branch is our revision"
Related branches
- Launchpad code reviewers from Canonical: Pending requested
-
Diff: 729 lines (+257/-65)17 files modifiedMakefile (+3/-11)
NEWS (+21/-1)
README (+12/-0)
__init__.py (+48/-7)
branch.py (+19/-10)
commands.py (+55/-0)
fetch.py (+6/-4)
idmap.py (+2/-2)
info.py (+2/-2)
mapping.py (+8/-4)
parsers.py (+8/-5)
repository.py (+6/-1)
setup.py (+1/-1)
tests/__init__.py (+9/-2)
tests/test_dir.py (+42/-0)
tests/test_mapping.py (+1/-1)
tests/test_parsers.py (+14/-14)
Changed in bzr-hg: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in bzr-hg: | |
milestone: | none → 0.2 |
Changed in bzr-hg: | |
milestone: | 0.2 → 0.1.1 |
status: | Fix Committed → Fix Released |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Michael Hudson wrote:
> Public bug reported:
>
> Demo:
Is this because you are trying to use incremental pull to get around
other issues? (bzr pull -r 100; bzr pull -r 200; etc)?
Certainly AIUI, I believe Jelmer has issues with some sources not
providing lookup ability. For example 'bzr-git', the git protocol
doesn't let you inspect the info, just pull the whole thing and inspect
it locally. (you can't walk the graph to determine what '-r -10' is.)
I don't know if bzr-hg suffers from the same problem. I don't know the
hg protocol that well.
(To say that, bzr-git and bzr-hg may always have to do a full fetch,
they may not have to do a full conversion.)
John
=:->
-----BEGIN PGP SIGNATURE----- enigmail. mozdev. org/
o1p0ACgkQJdeBCY SNAAMtDwCg0934Q t5h1AfGXwi7kGpq XcSW DVN7rT+ vce0XxHiPcd
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAku
oJkAoK9dCssAg/
=ZEjX
-----END PGP SIGNATURE-----