##// END OF EJS Templates
test-convert-filemap: test improved filtering algorithm
Patrick Mezard -
r9885:b1addc72 default
parent child Browse files
Show More
@@ -16,9 +16,11 b' cd source'
16
16
17 echo foo > foo
17 echo foo > foo
18 echo baz > baz
18 echo baz > baz
19 mkdir dir
19 mkdir -p dir/subdir
20 echo dir/file >> dir/file
20 echo dir/file >> dir/file
21 echo dir/file2 >> dir/file2
21 echo dir/file2 >> dir/file2
22 echo dir/subdir/file3 >> dir/subdir/file3
23 echo dir/subdir/file4 >> dir/subdir/file4
22 hg ci -d '0 0' -qAm '0: add foo baz dir/'
24 hg ci -d '0 0' -qAm '0: add foo baz dir/'
23
25
24 echo bar > bar
26 echo bar > bar
@@ -114,6 +116,8 b' include foo'
114 include copied
116 include copied
115 rename foo foo2
117 rename foo foo2
116 rename copied copied2
118 rename copied copied2
119 exclude dir/subdir
120 include dir/subdir/file3
117 EOF
121 EOF
118 hg -q convert --filemap renames.fmap --datesort source renames.repo
122 hg -q convert --filemap renames.fmap --datesort source renames.repo
119 hg up -q -R renames.repo
123 hg up -q -R renames.repo
@@ -16,7 +16,7 b' o | 2 "2: change foo" files: foo'
16 |/
16 |/
17 o 1 "1: add bar quux; copy foo to copied" files: bar copied quux
17 o 1 "1: add bar quux; copy foo to copied" files: bar copied quux
18 |
18 |
19 o 0 "0: add foo baz dir/" files: baz dir/file dir/file2 foo
19 o 0 "0: add foo baz dir/" files: baz dir/file dir/file2 dir/subdir/file3 dir/subdir/file4 foo
20
20
21 % final file versions in this repo:
21 % final file versions in this repo:
22 9463f52fe115e377cf2878d4fc548117211063f2 644 bar
22 9463f52fe115e377cf2878d4fc548117211063f2 644 bar
@@ -24,6 +24,8 b' 94c1be4dfde2ee8d78db8bbfcf81210813307c3d'
24 6ca237634e1f6bee1b6db94292fb44f092a25842 644 copied
24 6ca237634e1f6bee1b6db94292fb44f092a25842 644 copied
25 3e20847584beff41d7cd16136b7331ab3d754be0 644 dir/file
25 3e20847584beff41d7cd16136b7331ab3d754be0 644 dir/file
26 75e6d3f8328f5f6ace6bf10b98df793416a09dca 644 dir/file2
26 75e6d3f8328f5f6ace6bf10b98df793416a09dca 644 dir/file2
27 5fe139720576e18e34bcc9f79174db8897c8afe9 644 dir/subdir/file3
28 57a1c1511590f3de52874adfa04effe8a77d64af 644 dir/subdir/file4
27 9a7b52012991e4873687192c3e17e61ba3e837a3 644 foo
29 9a7b52012991e4873687192c3e17e61ba3e837a3 644 foo
28 bc3eca3f47023a3e70ca0d8cc95a22a6827db19d 644 quux
30 bc3eca3f47023a3e70ca0d8cc95a22a6827db19d 644 quux
29 copied renamed from foo:2ed2a3912a0b24502043eae84ee4b279c18b90dd
31 copied renamed from foo:2ed2a3912a0b24502043eae84ee4b279c18b90dd
@@ -144,10 +146,11 b' o 2 "2: change foo" files: foo2'
144 |
146 |
145 o 1 "1: add bar quux; copy foo to copied" files: copied2
147 o 1 "1: add bar quux; copy foo to copied" files: copied2
146 |
148 |
147 o 0 "0: add foo baz dir/" files: dir2/file foo2
149 o 0 "0: add foo baz dir/" files: dir2/file dir2/subdir/file3 foo2
148
150
149 e5e3d520be9be45937d0b06b004fadcd6c221fa2 644 copied2
151 e5e3d520be9be45937d0b06b004fadcd6c221fa2 644 copied2
150 3e20847584beff41d7cd16136b7331ab3d754be0 644 dir2/file
152 3e20847584beff41d7cd16136b7331ab3d754be0 644 dir2/file
153 5fe139720576e18e34bcc9f79174db8897c8afe9 644 dir2/subdir/file3
151 9a7b52012991e4873687192c3e17e61ba3e837a3 644 foo2
154 9a7b52012991e4873687192c3e17e61ba3e837a3 644 foo2
152 copied2 renamed from foo2:2ed2a3912a0b24502043eae84ee4b279c18b90dd
155 copied2 renamed from foo2:2ed2a3912a0b24502043eae84ee4b279c18b90dd
153 copied:
156 copied:
General Comments 0
You need to be logged in to leave comments. Login now