Show More
@@ -107,6 +107,8 b' class bzr_source(converter_source):' | |||||
107 | if revid is None: |
|
107 | if revid is None: | |
108 | raise util.Abort(_('%s is not a valid revision') % self.rev) |
|
108 | raise util.Abort(_('%s is not a valid revision') % self.rev) | |
109 | heads = [revid] |
|
109 | heads = [revid] | |
|
110 | # Empty repositories return 'null:', which cannot be retrieved | |||
|
111 | heads = [h for h in heads if h != 'null:'] | |||
110 | return heads |
|
112 | return heads | |
111 |
|
113 | |||
112 | def getfile(self, name, rev): |
|
114 | def getfile(self, name, rev): |
@@ -7,6 +7,17 b' create and rename on the same file in th' | |||||
7 | $ mkdir test-createandrename |
|
7 | $ mkdir test-createandrename | |
8 | $ cd test-createandrename |
|
8 | $ cd test-createandrename | |
9 | $ bzr init -q source |
|
9 | $ bzr init -q source | |
|
10 | ||||
|
11 | test empty repo conversion (issue3233) | |||
|
12 | ||||
|
13 | $ hg convert source source-hg | |||
|
14 | initializing destination source-hg repository | |||
|
15 | scanning source... | |||
|
16 | sorting... | |||
|
17 | converting... | |||
|
18 | ||||
|
19 | back to the rename stuff | |||
|
20 | ||||
10 | $ cd source |
|
21 | $ cd source | |
11 | $ echo a > a |
|
22 | $ echo a > a | |
12 | $ echo c > c |
|
23 | $ echo c > c | |
@@ -25,7 +36,6 b' create and rename on the same file in th' | |||||
25 | $ bzr commit -q -m 'rename a into b, create a, rename c into d' |
|
36 | $ bzr commit -q -m 'rename a into b, create a, rename c into d' | |
26 | $ cd .. |
|
37 | $ cd .. | |
27 | $ hg convert source source-hg |
|
38 | $ hg convert source source-hg | |
28 | initializing destination source-hg repository |
|
|||
29 | scanning source... |
|
39 | scanning source... | |
30 | sorting... |
|
40 | sorting... | |
31 | converting... |
|
41 | converting... |
General Comments 0
You need to be logged in to leave comments.
Login now