Mercurial > hg > mercurial-source
comparison tests/test-convert-bzr-ghosts.t @ 16062:f84dda152a55
convert/bzr: convert all branches (issue3229) (BC)
Instead of opening the target bzr checkout as a single branch, we try to open
it as a repository. This has the following effects:
- All branches are now converted
- bzr branch names are preserved. Previously, the selected branch was always
converted as 'default'. Branches without a name or 'trunk' are mapped to
'default branch.
- Lightweight checkouts are no longer supported. Maybe they can be, I did not
try to fix that at all.
Implementation notes:
- This was a quick fix, I have no knowledge of bzr API besides browsing 2.0.3
sources.
- The fix was only tested on OSX against bzr 2.4.2.
- Tags discovery does not handle collisions. I have no idea how tags work in
bzr so maybe such collisions are not possible.
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Thu, 02 Feb 2012 10:15:12 +0100 |
parents | b6a784e39ad4 |
children | f2719b387380 |
comparison
equal
deleted
inserted
replaced
16061:f5b6046f6ce8 | 16062:f84dda152a55 |
---|---|
28 sorting... | 28 sorting... |
29 converting... | 29 converting... |
30 1 Initial layout setup | 30 1 Initial layout setup |
31 0 Commit with ghost revision | 31 0 Commit with ghost revision |
32 $ glog -R source-hg | 32 $ glog -R source-hg |
33 o 1 "Commit with ghost revision" files: somefile | 33 o 1@source "Commit with ghost revision" files: somefile |
34 | | 34 | |
35 o 0 "Initial layout setup" files: somefile | 35 o 0@source "Initial layout setup" files: somefile |
36 | 36 |