Show More
@@ -266,3 +266,9 b' class convert_cvs(converter_source):' | |||
|
266 | 266 | |
|
267 | 267 | def gettags(self): |
|
268 | 268 | return self.tags |
|
269 | ||
|
270 | def getchangedfiles(self, rev, i): | |
|
271 | files = self.files[rev].keys() | |
|
272 | files.sort() | |
|
273 | return files | |
|
274 |
@@ -29,11 +29,24 b' cd ..' | |||
|
29 | 29 | echo % checkout source directory |
|
30 | 30 | cvs -q checkout src |
|
31 | 31 | |
|
32 | echo % commit a new revision changing b/c | |
|
33 | cd src | |
|
34 | echo c >> b/c | |
|
35 | cvs -q commit -mci0 . | grep '<--' |\ | |
|
36 | sed -e 's:.*src/\(.*\),v.*:checking in src/\1,v:g' | |
|
37 | cd .. | |
|
38 | ||
|
32 | 39 | echo % convert fresh repo |
|
33 | 40 | hg convert src src-hg | sed -e 's/connecting to.*cvsrepo/connecting to cvsrepo/g' |
|
34 | 41 | cat src-hg/a |
|
35 | 42 | cat src-hg/b/c |
|
36 | 43 | |
|
44 | echo % convert fresh repo with --filemap | |
|
45 | echo include b/c > filemap | |
|
46 | hg convert --filemap filemap src src-filemap | sed -e 's/connecting to.*cvsrepo/connecting to cvsrepo/g' | |
|
47 | cat src-hg/b/c | |
|
48 | hg -R src-filemap log --template '#rev# #desc# files: #files#\n' | |
|
49 | ||
|
37 | 50 | echo % commit new file revisions |
|
38 | 51 | cd src |
|
39 | 52 | echo a >> a |
@@ -47,5 +60,8 b" hg convert src src-hg | sed -e 's/connec" | |||
|
47 | 60 | cat src-hg/a |
|
48 | 61 | cat src-hg/b/c |
|
49 | 62 | |
|
63 | echo % convert again with --filemap | |
|
64 | hg convert --filemap filemap src src-filemap | sed -e 's/connecting to.*cvsrepo/connecting to cvsrepo/g' | |
|
65 | cat src-hg/b/c | |
|
66 | hg -R src-filemap log --template '#rev# #desc# files: #files#\n' | |
|
50 | 67 | |
|
51 |
@@ -9,17 +9,37 b' No conflicts created by this import' | |||
|
9 | 9 | % checkout source directory |
|
10 | 10 | U src/a |
|
11 | 11 | U src/b/c |
|
12 | % commit a new revision changing b/c | |
|
13 | checking in src/b/c,v | |
|
12 | 14 | % convert fresh repo |
|
13 | 15 | initializing destination src-hg repository |
|
14 | 16 | connecting to cvsrepo |
|
15 | 17 | scanning source... |
|
16 | 18 | sorting... |
|
17 | 19 | converting... |
|
18 |
|
|
|
19 |
|
|
|
20 | 2 Initial revision | |
|
21 | 1 import | |
|
22 | 0 ci0 | |
|
20 | 23 | updating tags |
|
21 | 24 | a |
|
22 | 25 | c |
|
26 | c | |
|
27 | % convert fresh repo with --filemap | |
|
28 | initializing destination src-filemap repository | |
|
29 | connecting to cvsrepo | |
|
30 | scanning source... | |
|
31 | sorting... | |
|
32 | converting... | |
|
33 | 2 Initial revision | |
|
34 | 1 import | |
|
35 | rolling back last transaction | |
|
36 | 0 ci0 | |
|
37 | updating tags | |
|
38 | c | |
|
39 | c | |
|
40 | 2 update tags files: .hgtags | |
|
41 | 1 ci0 files: b/c | |
|
42 | 0 Initial revision files: b/c | |
|
23 | 43 | % commit new file revisions |
|
24 | 44 | checking in src/a,v |
|
25 | 45 | checking in src/b/c,v |
@@ -30,8 +50,22 b' scanning source...' | |||
|
30 | 50 | sorting... |
|
31 | 51 | converting... |
|
32 | 52 | 0 ci1 |
|
33 | updating tags | |
|
34 | 53 | a |
|
35 | 54 | a |
|
36 | 55 | c |
|
37 | 56 | c |
|
57 | c | |
|
58 | % convert again with --filemap | |
|
59 | destination src-filemap is a Mercurial repository | |
|
60 | connecting to cvsrepo | |
|
61 | scanning source... | |
|
62 | sorting... | |
|
63 | converting... | |
|
64 | 0 ci1 | |
|
65 | c | |
|
66 | c | |
|
67 | c | |
|
68 | 3 ci1 files: b/c | |
|
69 | 2 update tags files: .hgtags | |
|
70 | 1 ci0 files: b/c | |
|
71 | 0 Initial revision files: b/c |
General Comments 0
You need to be logged in to leave comments.
Login now