##// END OF EJS Templates
Use relative imports in inotify.server....
Use relative imports in inotify.server. Fixes an import failure I was getting under hgtk and hgweb: *** failed to import extension inotify: 'module' object has no attribute 'inotify'

File last commit:

r6888:7c36a4fb default
r6909:b5a6fce0 default
Show More
test-commit-unresolved
40 lines | 611 B | text/plain | TextLexer
/ tests / test-commit-unresolved
Stefano Tortarolo
make commit fail when committing unresolved files
r6888 #!/bin/sh
echo "[extensions]" >> $HGRCPATH
echo "graphlog=" >> $HGRCPATH
function addcommit {
echo $1 > $1
hg add $1
hg commit -d "${2} 0" -u test -m $1
}
function commit {
hg commit -d "${2} 0" -u test -m $1
}
hg init a
cd a
addcommit "A" 0
addcommit "B" 1
echo "C" >> A
commit "C" 2
hg update -C 0
echo "D" >> A
commit "D" 3
echo
echo "% Merging a conflict araises"
hg merge
echo
echo "% Correct the conflict without marking the file as resolved"
echo "ABCD" > A
hg commit -m "Merged"
echo
echo "% Mark the conflict as resolved and commit"
hg resolve -m A
hg commit -m "Merged"
exit 0