##// END OF EJS Templates
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero. Some systems show "Thu Jan 01" instead of "Thu Jan 1", which breaks tests. Using "1000000" yields "Mon Jan 12 13:46:40 1970", which looks the same on all systems.

File last commit:

r1933:7544700f default
r1933:7544700f default
Show More
test-filebranch
79 lines | 1.4 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.
cat <<'EOF' > merge
#!/bin/sh
echo merging for `basename $1`
EOF
chmod +x merge
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"
hg debugstate | cut -b 1-16,35-
echo merging
hg pull ../a
mpm@selenic.com
Clean up some merge logic...
r993 env HGMERGE=../merge hg update -vm
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"
hg debugstate | cut -b 1-16,35- | grep "^m"
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"
hg debugindex .hg/00changelog.i
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"
hg debugindex .hg/data/foo.i
echo "bar: we shouldn't have a merge here"
hg debugindex .hg/data/bar.i
echo "baz: we shouldn't have a merge here"
hg debugindex .hg/data/baz.i
echo "quux: we shouldn't have a merge here"
hg debugindex .hg/data/quux.i
mpm@selenic.com
Clean up some merge logic...
r993 echo "manifest entries should match tips of all files"
hg manifest
mpm@selenic.com
Fix long-standing excessive file merges...
r990 echo "everything should be clean now"
hg status
hg verify