##// END OF EJS Templates
mq: Fix --qrefresh --short to work with --exclude and --include...
mq: Fix --qrefresh --short to work with --exclude and --include pmezard expects hg qref -s -X b to apply the -X to the list of files in the patch, and thus remove b from the patch. That's how it worked before f7fc5f5ecd62. That change seemed sensible, but it wasn't... mpm says (17:22:30) pmezard_: kiilerix1: do you mean that -X should be forbidden with -s ? (17:22:54) pmezard_: kiilerix1: and --include too (17:23:03) mpm: No because you should be able to say hg qref -s foo* -X foo-bar so mpm expects hg qref -s -X b * to apply the -X to the list of files in the working directory, and thus don't include b in the patch This patch tries to make both usecases work by creating a matchfn which uses the include/excludes but not the filelist.

File last commit:

r6329:3f754be7 default
r7177:09ed32b7 default
Show More
test-filebranch
79 lines | 1.5 KiB | text/plain | TextLexer
mpm@selenic.com
Fix long-standing excessive file merges...
r990 #!/bin/sh
# This test makes sure that we don't mark a file as merged with its ancestor
# when we do a merge.
Alexis S. L. Carvalho
test-filebranch: avoid a shell script
r4293 cat <<EOF > merge
import sys, os
print "merging for", os.path.basename(sys.argv[1])
mpm@selenic.com
Fix long-standing excessive file merges...
r990 EOF
Alexis S. L. Carvalho
test-filebranch: avoid a shell script
r4293 HGMERGE="python ../merge"; export HGMERGE
mpm@selenic.com
Fix long-standing excessive file merges...
r990
echo creating base
hg init a
cd a
echo 1 > foo
echo 1 > bar
echo 1 > baz
echo 1 > quux
hg add foo bar baz quux
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg commit -m "base" -d "1000000 0"
mpm@selenic.com
Fix long-standing excessive file merges...
r990
cd ..
hg clone a b
echo creating branch a
cd a
echo 2a > foo
echo 2a > bar
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg commit -m "branch a" -d "1000000 0"
mpm@selenic.com
Fix long-standing excessive file merges...
r990
echo creating branch b
cd ..
cd b
echo 2b > foo
echo 2b > baz
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg commit -m "branch b" -d "1000000 0"
mpm@selenic.com
Fix long-standing excessive file merges...
r990
echo "we shouldn't have anything but n state here"
Matt Mackall
tests: fix repeatability for test-filebranch with dirstate granularity
r6329 hg debugstate --nodates | grep -v "^n"
mpm@selenic.com
Fix long-standing excessive file merges...
r990
echo merging
hg pull ../a
Alexis S. L. Carvalho
test-filebranch: avoid a shell script
r4293 hg merge -v
mpm@selenic.com
Fix long-standing excessive file merges...
r990
echo 2m > foo
echo 2b > baz
echo new > quux
echo "we shouldn't have anything but foo in merge state here"
Alexis S. L. Carvalho
debugstate: add --nodates...
r6296 hg debugstate --nodates | grep "^m"
mpm@selenic.com
Fix long-standing excessive file merges...
r990
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg ci -m "merge" -d "1000000 0"
mpm@selenic.com
Fix long-standing excessive file merges...
r990
echo "main: we should have a merge here"
Benoit Boissinot
switch to the .hg/store layout, fix the tests
r3853 hg debugindex .hg/store/00changelog.i
mpm@selenic.com
Fix long-standing excessive file merges...
r990
mpm@selenic.com
Clean up some merge logic...
r993 echo "log should show foo and quux changed"
hg log -v -r tip
mpm@selenic.com
Fix long-standing excessive file merges...
r990 echo "foo: we should have a merge here"
Benoit Boissinot
switch to the .hg/store layout, fix the tests
r3853 hg debugindex .hg/store/data/foo.i
mpm@selenic.com
Fix long-standing excessive file merges...
r990
echo "bar: we shouldn't have a merge here"
Benoit Boissinot
switch to the .hg/store layout, fix the tests
r3853 hg debugindex .hg/store/data/bar.i
mpm@selenic.com
Fix long-standing excessive file merges...
r990
echo "baz: we shouldn't have a merge here"
Benoit Boissinot
switch to the .hg/store layout, fix the tests
r3853 hg debugindex .hg/store/data/baz.i
mpm@selenic.com
Fix long-standing excessive file merges...
r990
echo "quux: we shouldn't have a merge here"
Benoit Boissinot
switch to the .hg/store layout, fix the tests
r3853 hg debugindex .hg/store/data/quux.i
mpm@selenic.com
Fix long-standing excessive file merges...
r990
mpm@selenic.com
Clean up some merge logic...
r993 echo "manifest entries should match tips of all files"
Matt Mackall
make manifest friendlier...
r3736 hg manifest --debug
mpm@selenic.com
Clean up some merge logic...
r993
mpm@selenic.com
Fix long-standing excessive file merges...
r990 echo "everything should be clean now"
hg status
hg verify