##// END OF EJS Templates
Merge with crew-stable
Patrick Mezard -
r8046:f3ef8a35 merge default
parent child Browse files
Show More
@@ -21,6 +21,8 b' try:'
21 21 except ImportError:
22 22 pass
23 23
24 supportedkinds = ('file', 'symlink')
25
24 26 class bzr_source(converter_source):
25 27 """Reads Bazaar repositories by using the Bazaar Python libraries"""
26 28
@@ -71,7 +73,7 b' class bzr_source(converter_source):'
71 73 def getfile(self, name, rev):
72 74 revtree = self.sourcerepo.revision_tree(rev)
73 75 fileid = revtree.path2id(name)
74 if fileid is None:
76 if fileid is None or revtree.kind(fileid) not in supportedkinds:
75 77 # the file is not available anymore - was deleted
76 78 raise IOError(_('%s is not available in %s anymore') %
77 79 (name, rev))
@@ -9,12 +9,15 b' bzr init -q source'
9 9 cd source
10 10 echo a > a
11 11 echo c > c
12 bzr add -q a c
13 bzr commit -q -m 'Initial add: a, c'
12 echo e > e
13 bzr add -q a c e
14 bzr commit -q -m 'Initial add: a, c, e'
14 15 bzr mv a b
15 16 bzr mv c d
17 bzr mv e f
16 18 echo a2 >> a
17 bzr add -q a
19 mkdir e
20 bzr add -q a e
18 21 bzr commit -q -m 'rename a into b, create a, rename c into d'
19 22 cd ..
20 23 hg convert source source-hg
@@ -1,27 +1,29 b''
1 1 % create and rename on the same file in the same step
2 2 a => b
3 3 c => d
4 e => f
4 5 initializing destination source-hg repository
5 6 scanning source...
6 7 sorting...
7 8 converting...
8 1 Initial add: a, c
9 1 Initial add: a, c, e
9 10 0 rename a into b, create a, rename c into d
10 o 1 "rename a into b, create a, rename c into d" files: a b c d
11 o 1 "rename a into b, create a, rename c into d" files: a b c d e f
11 12 |
12 o 0 "Initial add: a, c" files: a c
13 o 0 "Initial add: a, c, e" files: a c e
13 14
14 15 % manifest
15 16 a
16 17 b
17 18 d
19 f
18 20 % test --rev option
19 21 initializing destination source-1-hg repository
20 22 scanning source...
21 23 sorting...
22 24 converting...
23 0 Initial add: a, c
24 o 0 "Initial add: a, c" files: a c
25 0 Initial add: a, c, e
26 o 0 "Initial add: a, c, e" files: a c e
25 27
26 28 % merge
27 29 initializing destination source-hg repository
General Comments 0
You need to be logged in to leave comments. Login now