author | Mike Edgar <adgar@google.com> |
Wed, 10 Sep 2014 00:18:15 -0400 | |
changeset 22421 | 30a610424eff |
parent 22300 | 35ab037de989 |
child 25571 | 1abfe639a70c |
permissions | -rw-r--r-- |
5278
70e9a527cc61
convert: avoid dirstate checks; add a test
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff
changeset
|
1 |
|
12525
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
2 |
$ cat >> $HGRCPATH <<EOF |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
3 |
> [extensions] |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
4 |
> convert= |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
5 |
> [convert] |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
6 |
> hg.saverev=False |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
7 |
> EOF |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
8 |
$ hg init orig |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
9 |
$ cd orig |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
10 |
$ echo foo > foo |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
11 |
$ echo bar > bar |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
12 |
$ hg ci -qAm 'add foo and bar' |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
13 |
$ hg rm foo |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
14 |
$ hg ci -m 'remove foo' |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
15 |
$ mkdir foo |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
16 |
$ echo file > foo/file |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
17 |
$ hg ci -qAm 'add foo/file' |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
18 |
$ hg tag some-tag |
21498
6b8daeea638a
convert: mercurial source: convert global tags only - not local tags
Mads Kiilerich <madski@unity3d.com>
parents:
20372
diff
changeset
|
19 |
$ hg tag -l local-tag |
12525
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
20 |
$ hg log |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
21 |
changeset: 3:593cbf6fb2b4 |
21498
6b8daeea638a
convert: mercurial source: convert global tags only - not local tags
Mads Kiilerich <madski@unity3d.com>
parents:
20372
diff
changeset
|
22 |
tag: local-tag |
12525
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
23 |
tag: tip |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
24 |
user: test |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
25 |
date: Thu Jan 01 00:00:00 1970 +0000 |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
26 |
summary: Added tag some-tag for changeset ad681a868e44 |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
27 |
|
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
28 |
changeset: 2:ad681a868e44 |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
29 |
tag: some-tag |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
30 |
user: test |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
31 |
date: Thu Jan 01 00:00:00 1970 +0000 |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
32 |
summary: add foo/file |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
33 |
|
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
34 |
changeset: 1:cbba8ecc03b7 |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
35 |
user: test |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
36 |
date: Thu Jan 01 00:00:00 1970 +0000 |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
37 |
summary: remove foo |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
38 |
|
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
39 |
changeset: 0:327daa9251fa |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
40 |
user: test |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
41 |
date: Thu Jan 01 00:00:00 1970 +0000 |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
42 |
summary: add foo and bar |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
43 |
|
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
44 |
$ cd .. |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
45 |
$ hg convert orig new 2>&1 | grep -v 'subversion python bindings could not be loaded' |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
46 |
initializing destination new repository |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
47 |
scanning source... |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
48 |
sorting... |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
49 |
converting... |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
50 |
3 add foo and bar |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
51 |
2 remove foo |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
52 |
1 add foo/file |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
53 |
0 Added tag some-tag for changeset ad681a868e44 |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
54 |
$ cd new |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
55 |
$ hg out ../orig |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
56 |
comparing with ../orig |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
57 |
searching for changes |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
58 |
no changes found |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
59 |
[1] |
5278
70e9a527cc61
convert: avoid dirstate checks; add a test
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff
changeset
|
60 |
|
12525
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
61 |
dirstate should be empty: |
5279
2dbd750b3ddd
convert: clear the dirstate before a conversion, invalidate it afterwards
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
5278
diff
changeset
|
62 |
|
12525
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
63 |
$ hg debugstate |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
64 |
$ hg parents -q |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
65 |
$ hg up -C |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
66 |
3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
67 |
$ hg copy bar baz |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
68 |
|
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
69 |
put something in the dirstate: |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
70 |
|
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
71 |
$ hg debugstate > debugstate |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
72 |
$ grep baz debugstate |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
73 |
a 0 -1 unset baz |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
74 |
copy: bar -> baz |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
75 |
|
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
76 |
add a new revision in the original repo |
5279
2dbd750b3ddd
convert: clear the dirstate before a conversion, invalidate it afterwards
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
5278
diff
changeset
|
77 |
|
12525
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
78 |
$ cd ../orig |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
79 |
$ echo baz > baz |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
80 |
$ hg ci -qAm 'add baz' |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
81 |
$ cd .. |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
82 |
$ hg convert orig new 2>&1 | grep -v 'subversion python bindings could not be loaded' |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
83 |
scanning source... |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
84 |
sorting... |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
85 |
converting... |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
86 |
0 add baz |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
87 |
$ cd new |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
88 |
$ hg out ../orig |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
89 |
comparing with ../orig |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
90 |
searching for changes |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
91 |
no changes found |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
92 |
[1] |
5279
2dbd750b3ddd
convert: clear the dirstate before a conversion, invalidate it afterwards
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
5278
diff
changeset
|
93 |
|
12525
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
94 |
dirstate should be the same (no output below): |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
95 |
|
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
96 |
$ hg debugstate > new-debugstate |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
97 |
$ diff debugstate new-debugstate |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
98 |
|
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
99 |
no copies |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
100 |
|
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
101 |
$ hg up -C |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
102 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
103 |
$ hg debugrename baz |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
104 |
baz not renamed |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
105 |
$ cd .. |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
106 |
|
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
107 |
test tag rewriting |
5279
2dbd750b3ddd
convert: clear the dirstate before a conversion, invalidate it afterwards
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
5278
diff
changeset
|
108 |
|
12525
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
109 |
$ cat > filemap <<EOF |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
110 |
> exclude foo |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
111 |
> EOF |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
112 |
$ hg convert --filemap filemap orig new-filemap 2>&1 | grep -v 'subversion python bindings could not be loaded' |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
113 |
initializing destination new-filemap repository |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
114 |
scanning source... |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
115 |
sorting... |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
116 |
converting... |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
117 |
4 add foo and bar |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
118 |
3 remove foo |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
119 |
2 add foo/file |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
120 |
1 Added tag some-tag for changeset ad681a868e44 |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
121 |
0 add baz |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
122 |
$ cd new-filemap |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
123 |
$ hg tags |
20372
45562379ce4e
convert: replace old sha1s in the description
Sean Farley <sean.michael.farley@gmail.com>
parents:
19892
diff
changeset
|
124 |
tip 2:3c74706b1ff8 |
12525
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
125 |
some-tag 0:ba8636729451 |
81bf25ddd76a
tests: unify test-convert-hg-sink
Matt Mackall <mpm@selenic.com>
parents:
8693
diff
changeset
|
126 |
$ cd .. |
19892
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
127 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
128 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
129 |
Test cases for hg-hg roundtrip |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
130 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
131 |
Helper |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
132 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
133 |
$ glog() |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
134 |
> { |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
135 |
> hg log -G --template '{rev} {node|short} "{desc}" files: {files}\n' $* |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
136 |
> } |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
137 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
138 |
Create a tricky source repo |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
139 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
140 |
$ hg init source |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
141 |
$ cd source |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
142 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
143 |
$ echo 0 > 0 |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
144 |
$ hg ci -Aqm '0: add 0' |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
145 |
$ echo a > a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
146 |
$ mkdir dir |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
147 |
$ echo b > dir/b |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
148 |
$ hg ci -qAm '1: add a and dir/b' |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
149 |
$ echo c > dir/c |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
150 |
$ hg ci -qAm '2: add dir/c' |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
151 |
$ hg copy a e |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
152 |
$ echo b >> b |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
153 |
$ hg ci -qAm '3: copy a to e, change b' |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
154 |
$ hg up -qr -3 |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
155 |
$ echo a >> a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
156 |
$ hg ci -qAm '4: change a' |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
157 |
$ hg merge |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
158 |
merging a and e to e |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
159 |
2 files updated, 1 files merged, 0 files removed, 0 files unresolved |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
160 |
(branch merge, don't forget to commit) |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
161 |
$ hg copy b dir/d |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
162 |
$ hg ci -qAm '5: merge 2 and 3, copy b to dir/d' |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
163 |
$ echo a >> a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
164 |
$ hg ci -qAm '6: change a' |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
165 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
166 |
$ hg mani |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
167 |
0 |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
168 |
a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
169 |
b |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
170 |
dir/b |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
171 |
dir/c |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
172 |
dir/d |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
173 |
e |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
174 |
$ glog |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
175 |
@ 6 0613c8e59a3d "6: change a" files: a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
176 |
| |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
177 |
o 5 717e9b37cdb7 "5: merge 2 and 3, copy b to dir/d" files: dir/d e |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
178 |
|\ |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
179 |
| o 4 86a55cb968d5 "4: change a" files: a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
180 |
| | |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
181 |
o | 3 0e6e235919dd "3: copy a to e, change b" files: b e |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
182 |
| | |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
183 |
o | 2 0394b0d5e4f7 "2: add dir/c" files: dir/c |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
184 |
|/ |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
185 |
o 1 333546584845 "1: add a and dir/b" files: a dir/b |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
186 |
| |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
187 |
o 0 d1a24e2ebd23 "0: add 0" files: 0 |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
188 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
189 |
$ cd .. |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
190 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
191 |
Convert excluding rev 0 and dir/ (and thus rev2): |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
192 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
193 |
$ cat << EOF > filemap |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
194 |
> exclude dir |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
195 |
> EOF |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
196 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
197 |
$ hg convert --filemap filemap source dest --config convert.hg.revs=1:: |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
198 |
initializing destination dest repository |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
199 |
scanning source... |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
200 |
sorting... |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
201 |
converting... |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
202 |
5 1: add a and dir/b |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
203 |
4 2: add dir/c |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
204 |
3 3: copy a to e, change b |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
205 |
2 4: change a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
206 |
1 5: merge 2 and 3, copy b to dir/d |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
207 |
0 6: change a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
208 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
209 |
Verify that conversion skipped rev 2: |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
210 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
211 |
$ glog -R dest |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
212 |
o 4 78814e84a217 "6: change a" files: a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
213 |
| |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
214 |
o 3 f7cff662c5e5 "5: merge 2 and 3, copy b to dir/d" files: e |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
215 |
|\ |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
216 |
| o 2 ab40a95b0072 "4: change a" files: a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
217 |
| | |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
218 |
o | 1 bd51f17597bf "3: copy a to e, change b" files: b e |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
219 |
|/ |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
220 |
o 0 a4a1dae0fe35 "1: add a and dir/b" files: 0 a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
221 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
222 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
223 |
Verify mapping correct in both directions: |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
224 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
225 |
$ cat source/.hg/shamap |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
226 |
a4a1dae0fe3514cefd9b8541b7abbc8f44f946d5 333546584845f70c4cfecb992341aaef0e708166 |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
227 |
bd51f17597bf32268e68a560b206898c3960cda2 0e6e235919dd8e9285ba8eb5adf703af9ad99378 |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
228 |
ab40a95b00725307e79c2fd271000aa8af9759f4 86a55cb968d51770cba2a1630d6cc637b574580a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
229 |
f7cff662c5e581e6f3f1a85ffdd2bcb35825f6ba 717e9b37cdb7eb9917ca8e30aa3f986e6d5b177d |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
230 |
78814e84a217894517c2de392b903ed05e6871a4 0613c8e59a3ddb9789072ef52f1ed13496489bb4 |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
231 |
$ cat dest/.hg/shamap |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
232 |
333546584845f70c4cfecb992341aaef0e708166 a4a1dae0fe3514cefd9b8541b7abbc8f44f946d5 |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
233 |
0394b0d5e4f761ced559fd0bbdc6afc16cb3f7d1 a4a1dae0fe3514cefd9b8541b7abbc8f44f946d5 |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
234 |
0e6e235919dd8e9285ba8eb5adf703af9ad99378 bd51f17597bf32268e68a560b206898c3960cda2 |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
235 |
86a55cb968d51770cba2a1630d6cc637b574580a ab40a95b00725307e79c2fd271000aa8af9759f4 |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
236 |
717e9b37cdb7eb9917ca8e30aa3f986e6d5b177d f7cff662c5e581e6f3f1a85ffdd2bcb35825f6ba |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
237 |
0613c8e59a3ddb9789072ef52f1ed13496489bb4 78814e84a217894517c2de392b903ed05e6871a4 |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
238 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
239 |
Verify meta data converted correctly: |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
240 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
241 |
$ hg -R dest log -r 1 --debug -p --git |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
242 |
changeset: 1:bd51f17597bf32268e68a560b206898c3960cda2 |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
243 |
phase: draft |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
244 |
parent: 0:a4a1dae0fe3514cefd9b8541b7abbc8f44f946d5 |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
245 |
parent: -1:0000000000000000000000000000000000000000 |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
246 |
manifest: 1:040c72ed9b101773c24ac314776bfc846943781f |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
247 |
user: test |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
248 |
date: Thu Jan 01 00:00:00 1970 +0000 |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
249 |
files+: b e |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
250 |
extra: branch=default |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
251 |
description: |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
252 |
3: copy a to e, change b |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
253 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
254 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
255 |
diff --git a/b b/b |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
256 |
new file mode 100644 |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
257 |
--- /dev/null |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
258 |
+++ b/b |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
259 |
@@ -0,0 +1,1 @@ |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
260 |
+b |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
261 |
diff --git a/a b/e |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
262 |
copy from a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
263 |
copy to e |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
264 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
265 |
Verify files included and excluded correctly: |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
266 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
267 |
$ hg -R dest manifest -r tip |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
268 |
0 |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
269 |
a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
270 |
b |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
271 |
e |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
272 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
273 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
274 |
Make changes in dest and convert back: |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
275 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
276 |
$ hg -R dest up -q |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
277 |
$ echo dest > dest/dest |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
278 |
$ hg -R dest ci -Aqm 'change in dest' |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
279 |
$ hg -R dest tip |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
280 |
changeset: 5:a2e0e3cc6d1d |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
281 |
tag: tip |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
282 |
user: test |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
283 |
date: Thu Jan 01 00:00:00 1970 +0000 |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
284 |
summary: change in dest |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
285 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
286 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
287 |
(converting merges back after using a filemap will probably cause chaos so we |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
288 |
exclude merges.) |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
289 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
290 |
$ hg convert dest source --config convert.hg.revs='!merge()' |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
291 |
scanning source... |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
292 |
sorting... |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
293 |
converting... |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
294 |
0 change in dest |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
295 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
296 |
Verify the conversion back: |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
297 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
298 |
$ hg -R source log --debug -r tip |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
299 |
changeset: 7:e6d364a69ff1248b2099e603b0c145504cade6f0 |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
300 |
tag: tip |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
301 |
phase: draft |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
302 |
parent: 6:0613c8e59a3ddb9789072ef52f1ed13496489bb4 |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
303 |
parent: -1:0000000000000000000000000000000000000000 |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
304 |
manifest: 7:aa3e9542f3b76d4f1f1b2e9c7ce9dbb48b6a95ec |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
305 |
user: test |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
306 |
date: Thu Jan 01 00:00:00 1970 +0000 |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
307 |
files+: dest |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
308 |
extra: branch=default |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
309 |
description: |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
310 |
change in dest |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
311 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
312 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
313 |
Files that had been excluded are still present: |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
314 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
315 |
$ hg -R source manifest -r tip |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
316 |
0 |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
317 |
a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
318 |
b |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
319 |
dest |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
320 |
dir/b |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
321 |
dir/c |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
322 |
dir/d |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
323 |
e |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
324 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
325 |
More source changes |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
326 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
327 |
$ cd source |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
328 |
$ echo 1 >> a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
329 |
$ hg ci -m '8: source first branch' |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
330 |
created new head |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
331 |
$ hg up -qr -2 |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
332 |
$ echo 2 >> a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
333 |
$ hg ci -m '9: source second branch' |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
334 |
$ hg merge -q --tool internal:local |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
335 |
$ hg ci -m '10: source merge' |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
336 |
$ echo >> a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
337 |
$ hg ci -m '11: source change' |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
338 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
339 |
$ hg mani |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
340 |
0 |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
341 |
a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
342 |
b |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
343 |
dest |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
344 |
dir/b |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
345 |
dir/c |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
346 |
dir/d |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
347 |
e |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
348 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
349 |
$ glog -r 6: |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
350 |
@ 11 0c8927d1f7f4 "11: source change" files: a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
351 |
| |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
352 |
o 10 9ccb7ee8d261 "10: source merge" files: a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
353 |
|\ |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
354 |
| o 9 f131b1518dba "9: source second branch" files: a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
355 |
| | |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
356 |
o | 8 669cf0e74b50 "8: source first branch" files: a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
357 |
| | |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
358 |
| o 7 e6d364a69ff1 "change in dest" files: dest |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
359 |
|/ |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
360 |
o 6 0613c8e59a3d "6: change a" files: a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
361 |
| |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
362 |
$ cd .. |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
363 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
364 |
$ hg convert --filemap filemap source dest --config convert.hg.revs=3: |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
365 |
scanning source... |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
366 |
sorting... |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
367 |
converting... |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
368 |
3 8: source first branch |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
369 |
2 9: source second branch |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
370 |
1 10: source merge |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
371 |
0 11: source change |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
372 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
373 |
$ glog -R dest |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
374 |
o 9 8432d597b263 "11: source change" files: a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
375 |
| |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
376 |
o 8 632ffacdcd6f "10: source merge" files: a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
377 |
|\ |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
378 |
| o 7 049cfee90ee6 "9: source second branch" files: a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
379 |
| | |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
380 |
o | 6 9b6845e036e5 "8: source first branch" files: a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
381 |
| | |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
382 |
| @ 5 a2e0e3cc6d1d "change in dest" files: dest |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
383 |
|/ |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
384 |
o 4 78814e84a217 "6: change a" files: a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
385 |
| |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
386 |
o 3 f7cff662c5e5 "5: merge 2 and 3, copy b to dir/d" files: e |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
387 |
|\ |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
388 |
| o 2 ab40a95b0072 "4: change a" files: a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
389 |
| | |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
390 |
o | 1 bd51f17597bf "3: copy a to e, change b" files: b e |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
391 |
|/ |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
392 |
o 0 a4a1dae0fe35 "1: add a and dir/b" files: 0 a |
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
393 |
|
77872b002e73
convert: update source shamap when using filemap, just as when not using filemap
Mads Kiilerich <madski@unity3d.com>
parents:
12525
diff
changeset
|
394 |
$ cd .. |
21633
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
395 |
|
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
396 |
Two way tests |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
397 |
|
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
398 |
$ hg init 0 |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
399 |
$ echo f > 0/f |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
400 |
$ echo a > 0/a-only |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
401 |
$ echo b > 0/b-only |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
402 |
$ hg -R 0 ci -Aqm0 |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
403 |
|
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
404 |
$ cat << EOF > filemap-a |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
405 |
> exclude b-only |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
406 |
> EOF |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
407 |
$ cat << EOF > filemap-b |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
408 |
> exclude a-only |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
409 |
> EOF |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
410 |
$ hg convert --filemap filemap-a 0 a |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
411 |
initializing destination a repository |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
412 |
scanning source... |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
413 |
sorting... |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
414 |
converting... |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
415 |
0 0 |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
416 |
$ hg -R a up -q |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
417 |
$ echo a > a/f |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
418 |
$ hg -R a ci -ma |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
419 |
|
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
420 |
$ hg convert --filemap filemap-b 0 b |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
421 |
initializing destination b repository |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
422 |
scanning source... |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
423 |
sorting... |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
424 |
converting... |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
425 |
0 0 |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
426 |
$ hg -R b up -q |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
427 |
$ echo b > b/f |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
428 |
$ hg -R b ci -mb |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
429 |
|
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
430 |
$ tail */.hg/shamap |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
431 |
==> 0/.hg/shamap <== |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
432 |
86f3f774ffb682bffb5dc3c1d3b3da637cb9a0d6 8a028c7c77f6c7bd6d63bc3f02ca9f779eabf16a |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
433 |
dd9f218eb91fb857f2a62fe023e1d64a4e7812fe 8a028c7c77f6c7bd6d63bc3f02ca9f779eabf16a |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
434 |
|
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
435 |
==> a/.hg/shamap <== |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
436 |
8a028c7c77f6c7bd6d63bc3f02ca9f779eabf16a 86f3f774ffb682bffb5dc3c1d3b3da637cb9a0d6 |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
437 |
|
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
438 |
==> b/.hg/shamap <== |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
439 |
8a028c7c77f6c7bd6d63bc3f02ca9f779eabf16a dd9f218eb91fb857f2a62fe023e1d64a4e7812fe |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
440 |
|
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
441 |
$ hg convert a 0 |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
442 |
scanning source... |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
443 |
sorting... |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
444 |
converting... |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
445 |
0 a |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
446 |
|
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
447 |
$ hg convert b 0 |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
448 |
scanning source... |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
449 |
sorting... |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
450 |
converting... |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
451 |
0 b |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
452 |
|
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
453 |
$ hg -R 0 log -G |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
454 |
o changeset: 2:637fbbbe96b6 |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
455 |
| tag: tip |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
456 |
| parent: 0:8a028c7c77f6 |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
457 |
| user: test |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
458 |
| date: Thu Jan 01 00:00:00 1970 +0000 |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
459 |
| summary: b |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
460 |
| |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
461 |
| o changeset: 1:ec7b9c96e692 |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
462 |
|/ user: test |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
463 |
| date: Thu Jan 01 00:00:00 1970 +0000 |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
464 |
| summary: a |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
465 |
| |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
466 |
@ changeset: 0:8a028c7c77f6 |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
467 |
user: test |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
468 |
date: Thu Jan 01 00:00:00 1970 +0000 |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
469 |
summary: 0 |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
470 |
|
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
471 |
$ hg convert --filemap filemap-b 0 a --config convert.hg.revs=1:: |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
472 |
scanning source... |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
473 |
sorting... |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
474 |
converting... |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
475 |
|
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
476 |
$ hg -R 0 up -r1 |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
477 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
478 |
$ echo f >> 0/f |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
479 |
$ hg -R 0 ci -mx |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
480 |
|
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
481 |
$ hg convert --filemap filemap-b 0 a --config convert.hg.revs=1:: |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
482 |
scanning source... |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
483 |
sorting... |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
484 |
converting... |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
485 |
0 x |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
486 |
|
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
487 |
$ hg -R a log -G -T '{rev} {desc|firstline} ({files})\n' |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
488 |
o 2 x (f) |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
489 |
| |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
490 |
@ 1 a (f) |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
491 |
| |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
492 |
o 0 0 (a-only f) |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
493 |
|
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
494 |
$ hg -R a mani -r tip |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
495 |
a-only |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
496 |
f |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
497 |
|
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
498 |
An additional round, demonstrating that unchanged files don't get converted |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
499 |
|
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
500 |
$ echo f >> 0/f |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
501 |
$ echo f >> 0/a-only |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
502 |
$ hg -R 0 ci -m "extra f+a-only change" |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
503 |
|
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
504 |
$ hg convert --filemap filemap-b 0 a --config convert.hg.revs=1:: |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
505 |
scanning source... |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
506 |
sorting... |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
507 |
converting... |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
508 |
0 extra f+a-only change |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
509 |
|
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
510 |
$ hg -R a log -G -T '{rev} {desc|firstline} ({files})\n' |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
511 |
o 3 extra f+a-only change (f) |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
512 |
| |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
513 |
o 2 x (f) |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
514 |
| |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
515 |
@ 1 a (f) |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
516 |
| |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
517 |
o 0 0 (a-only f) |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
518 |
|
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
519 |
|
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
520 |
Conversion after rollback |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
521 |
|
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
522 |
$ hg -R a rollback -f |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
523 |
repository tip rolled back to revision 2 (undo commit) |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
524 |
|
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
525 |
$ hg convert --filemap filemap-b 0 a --config convert.hg.revs=1:: |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
526 |
scanning source... |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
527 |
sorting... |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
528 |
converting... |
21636
3de9f2c4900c
convert: only consider shamap revisions converted if they still exists
Mads Kiilerich <madski@unity3d.com>
parents:
21633
diff
changeset
|
529 |
0 extra f+a-only change |
21633
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
530 |
|
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
531 |
$ hg -R a log -G -T '{rev} {desc|firstline} ({files})\n' |
21636
3de9f2c4900c
convert: only consider shamap revisions converted if they still exists
Mads Kiilerich <madski@unity3d.com>
parents:
21633
diff
changeset
|
532 |
o 3 extra f+a-only change (f) |
3de9f2c4900c
convert: only consider shamap revisions converted if they still exists
Mads Kiilerich <madski@unity3d.com>
parents:
21633
diff
changeset
|
533 |
| |
21633
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
534 |
o 2 x (f) |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
535 |
| |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
536 |
@ 1 a (f) |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
537 |
| |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
538 |
o 0 0 (a-only f) |
0ae44984b8d9
tests: better tests for two-way convert
Mads Kiilerich <madski@unity3d.com>
parents:
21498
diff
changeset
|
539 |
|
22300
35ab037de989
convert: introduce --full for converting all files
Mads Kiilerich <madski@unity3d.com>
parents:
21636
diff
changeset
|
540 |
Convert with --full adds and removes files that didn't change |
35ab037de989
convert: introduce --full for converting all files
Mads Kiilerich <madski@unity3d.com>
parents:
21636
diff
changeset
|
541 |
|
35ab037de989
convert: introduce --full for converting all files
Mads Kiilerich <madski@unity3d.com>
parents:
21636
diff
changeset
|
542 |
$ echo f >> 0/f |
35ab037de989
convert: introduce --full for converting all files
Mads Kiilerich <madski@unity3d.com>
parents:
21636
diff
changeset
|
543 |
$ hg -R 0 ci -m "f" |
35ab037de989
convert: introduce --full for converting all files
Mads Kiilerich <madski@unity3d.com>
parents:
21636
diff
changeset
|
544 |
$ hg convert --filemap filemap-b --full 0 a --config convert.hg.revs=1:: |
35ab037de989
convert: introduce --full for converting all files
Mads Kiilerich <madski@unity3d.com>
parents:
21636
diff
changeset
|
545 |
scanning source... |
35ab037de989
convert: introduce --full for converting all files
Mads Kiilerich <madski@unity3d.com>
parents:
21636
diff
changeset
|
546 |
sorting... |
35ab037de989
convert: introduce --full for converting all files
Mads Kiilerich <madski@unity3d.com>
parents:
21636
diff
changeset
|
547 |
converting... |
35ab037de989
convert: introduce --full for converting all files
Mads Kiilerich <madski@unity3d.com>
parents:
21636
diff
changeset
|
548 |
0 f |
35ab037de989
convert: introduce --full for converting all files
Mads Kiilerich <madski@unity3d.com>
parents:
21636
diff
changeset
|
549 |
$ hg -R a status --change tip |
35ab037de989
convert: introduce --full for converting all files
Mads Kiilerich <madski@unity3d.com>
parents:
21636
diff
changeset
|
550 |
M f |
35ab037de989
convert: introduce --full for converting all files
Mads Kiilerich <madski@unity3d.com>
parents:
21636
diff
changeset
|
551 |
A b-only |
35ab037de989
convert: introduce --full for converting all files
Mads Kiilerich <madski@unity3d.com>
parents:
21636
diff
changeset
|
552 |
R a-only |