Branches created in svn don't seem related in bzr
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Subversion Plugin |
New
|
Undecided
|
Unassigned | ||
Debian |
Confirmed
|
Unknown
|
Bug Description
Hi jelmer,
Sorry if this is already reported or fixed, I forgot to forward it at the time.
When an existing svn repo that already contains branches is used
through bzr, these branches seem unrelated in bzr. Branches created
with bzr svn-push are fine.
In my test case, I first used only SVN. Created an SVN repo, then
committed three dirs (trunk/
on trunk, then branched branch1 with svn cp. One more commit on
trunk, then one more commit on branch1. Then I went bzr, with "bzr
branch file://
branch1+bzr". I then tried to see how these branches differed from
bzr's point of view:
,----
| guest@mirexpres
| You have 2 extra revision(s):
| 3: guest 2008-01-12 commit on branch1 (after branching)
| 2: guest 2008-01-12 started branch1
|
| You are missing 4 revision(s):
| 5: guest 2008-01-12 commit 4 on trunk (after branching)
| 4: guest 2008-01-12 commit 3 on trunk
| 3: guest 2008-01-12 commit 2 on trunk
| 2: guest 2008-01-12 commit 1 on trunk
| guest@mirexpres
`----
As you can see, bzr doesn't seem to "remember" there's some common
history (apart from rev 1).
So I tried branching from within bzr, with "bzr svn-push
file://
on branch2. This one seems to work:
,----
| guest@mirexpres
| You have 1 extra revision(s):
| 6: guest 2008-01-12 commit on branch2
|
| You are missing 1 revision(s):
| 6: guest 2008-01-12 commit 5 on trunk
`----
For reference, here's the full history of the SVN repo:
,----
| guest@mirexpres
| -------
| r10 | guest | 2008-01-12 20:51:56 +0100 (Sat, 12 Jan 2008) | 1 line
| Changed paths:
| M /branches/
|
| commit on branch2
| -------
| r9 | guest | 2008-01-12 20:51:33 +0100 (Sat, 12 Jan 2008) | 1 line
| Changed paths:
| M /trunk/foo
|
| commit 5 on trunk
| -------
| r8 | guest | 2008-01-12 20:46:49 +0100 (Sat, 12 Jan 2008) | 1 line
| Changed paths:
| A /branches/branch2 (from /trunk:4)
| M /branches/
|
| commit 4 on trunk (after branching)
| -------
| r7 | guest | 2008-01-12 20:41:43 +0100 (Sat, 12 Jan 2008) | 1 line
| Changed paths:
| M /branches/
|
| commit on branch1 (after branching)
| -------
| r6 | guest | 2008-01-12 20:41:23 +0100 (Sat, 12 Jan 2008) | 1 line
| Changed paths:
| M /trunk/foo
|
| commit 4 on trunk (after branching)
| -------
| r5 | guest | 2008-01-12 20:41:01 +0100 (Sat, 12 Jan 2008) | 1 line
| Changed paths:
| A /branches/branch1 (from /trunk:1)
| A /branches/
|
| started branch1
| -------
| r4 | guest | 2008-01-12 20:40:33 +0100 (Sat, 12 Jan 2008) | 1 line
| Changed paths:
| M /trunk/foo
|
| commit 3 on trunk
| -------
| r3 | guest | 2008-01-12 20:40:28 +0100 (Sat, 12 Jan 2008) | 1 line
| Changed paths:
| M /trunk/foo
|
| commit 2 on trunk
| -------
| r2 | guest | 2008-01-12 20:40:20 +0100 (Sat, 12 Jan 2008) | 1 line
| Changed paths:
| A /trunk/foo
|
| commit 1 on trunk
| -------
| r1 | guest | 2008-01-12 20:39:56 +0100 (Sat, 12 Jan 2008) | 1 line
| Changed paths:
| A /branches
| A /tags
| A /trunk
|
| trunk/tags/branches
| -------
| guest@mirexpres
`----
And the output of bzr log, in trunk and in both branches:
,----
| guest@mirexpres
| 6: guest 2008-01-12 commit 5 on trunk
| 5: guest 2008-01-12 commit 4 on trunk (after branching)
| 4: guest 2008-01-12 commit 3 on trunk
| 3: guest 2008-01-12 commit 2 on trunk
| 2: guest 2008-01-12 commit 1 on trunk
| 1: guest 2008-01-12 trunk/tags/branches
| guest@mirexpres
| guest@mirexpres
| 3: guest 2008-01-12 commit on branch1 (after branching)
| 2: guest 2008-01-12 started branch1
| 1: guest 2008-01-12 trunk/tags/branches
| guest@mirexpres
| guest@mirexpres
| 6: guest 2008-01-12 commit on branch2
| 5: guest 2008-01-12 commit 4 on trunk (after branching)
| 4: guest 2008-01-12 commit 3 on trunk
| 3: guest 2008-01-12 commit 2 on trunk
| 2: guest 2008-01-12 commit 1 on trunk
| 1: guest 2008-01-12 trunk/tags/branches
| guest@mirexpres
`----
Roland.
Let me know if you need any more information requesting
or testing.
Thanks,
James