'hg commit' exit code with rollback
Sanjoy Mahajan
sanjoy at mrao.cam.ac.uk
Wed Jan 10 16:03:02 UTC 2007
When I rollback an 'hg commit' (e.g. by exiting the editor without
saving), the exit code is 0, which makes 'make' overeager. Here's an
exmaple (GNU) Makefile:
.PHONY: document commit
document: commit file.pdf
commit:
hg commit
%.pdf: %.tex
pdftex $<
If I do 'make' and abort the commit, the pdftex gets run because 'hg
commit' returned success. Do you know a magic switch or other
workaround?
-Sanjoy
`Not all those who wander are lost.' (J.R.R. Tolkien)
More information about the Mercurial
mailing list