##// END OF EJS Templates
convert: add a mode where mercurial_sink skips empty revisions....
convert: add a mode where mercurial_sink skips empty revisions. The getchanges function of some converter_source classes can return some false positives. I.e. they sometimes claim that a file "foo" was changed in some revision, even though its contents are still the same. convert_svn is particularly bad, but I think this can also happen with convert_cvs and, at least in theory, with mercurial_source. For regular conversions this is not really a problem - as long as getfile returns the right contents, we'll get a converted revision with the right contents. But when we use --filemap, this could lead to superfluous revisions being converted. Instead of fixing every converter_source, I decided to change mercurial_sink to work around this problem. When --filemap is used, we're interested only in revisions that touch some specific files. If a revision doesn't change any of these files, then we're not interested in it (at least for revisions with a single parent; merges are special). For mercurial_sink, we abuse this property and rollback a commit if the manifest text hasn't changed. This avoids duplicating the logic from localrepo.filecommit to detect unchanged files.

File last commit:

r4530:0ac7fee4 default
r5378:8a2915f5 default
Show More
test-flags
50 lines | 704 B | text/plain | TextLexer
Thomas Arendsen Hein
Don't use 'set -x', fix exports, sed and hexdump usage for Solaris.
r800 #!/bin/sh -e
mpm@selenic.com
[PATCH]: Typo in localrepository.update...
r412
Thomas Arendsen Hein
Fixed test-flags and .out for arbitrary umask settings. Use -ex shell flags....
r491 umask 027
mpm@selenic.com
[PATCH]: Typo in localrepository.update...
r412 mkdir test1
cd test1
hg init
touch a b
hg add a b
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg ci -m "added a b" -d "1000000 0"
mpm@selenic.com
[PATCH]: Typo in localrepository.update...
r412
cd ..
Benoit Boissinot
extend test-flags
r3321 hg clone test1 test3
mpm@selenic.com
[PATCH]: Typo in localrepository.update...
r412 mkdir test2
cd test2
hg init
mpm@selenic.com
Fix up tests for command name changes...
r440 hg pull ../test1
mpm@selenic.com
[PATCH]: Typo in localrepository.update...
r412 hg co
chmod +x a
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg ci -m "chmod +x a" -d "1000000 0"
Alexis S. L. Carvalho
Make sure the changelog mentions files whose flags changed...
r4530 echo % the changelog should mention file a:
hg tip --template '#files#\n'
mpm@selenic.com
[PATCH]: Typo in localrepository.update...
r412
cd ../test1
echo 123 >>a
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg ci -m "a updated" -d "1000000 0"
mpm@selenic.com
[PATCH]: Typo in localrepository.update...
r412
mpm@selenic.com
Fix up tests for command name changes...
r440 hg pull ../test2
mpm@selenic.com
[PATCH]: Typo in localrepository.update...
r412 hg heads
hg history
Vadim Gelfer
deprecate 'update -m'. use 'merge' instead.
r2283 hg -v merge
mpm@selenic.com
[PATCH]: Typo in localrepository.update...
r412
Benoit Boissinot
extend test-flags
r3321 cd ../test3
echo 123 >>b
hg ci -m "b updated" -d "1000000 0"
hg pull ../test2
hg heads
hg history
hg -v merge
ls -l ../test[123]/a > foo
Peter van Dijk
fix testsuite for freebsd and one timingissue
r1923 cut -b 1-10 < foo
mpm@selenic.com
[PATCH]: Typo in localrepository.update...
r412
Benoit Boissinot
switch to the .hg/store layout, fix the tests
r3853 hg debugindex .hg/store/data/a.i
hg debugindex ../test2/.hg/store/data/a.i
hg debugindex ../test1/.hg/store/data/a.i