##// END OF EJS Templates
rebase: use revset as soon as possible in internal logic...
rebase: use revset as soon as possible in internal logic The buildstate function now take a set of revs. Logic related to --source and --base option have been moved in the main rebase function. In the process this fixes a bug where the wrong source changeset might be pick. This explain the changes in hgext/rebase.py

File last commit:

r15247:3cd1605e default
r15267:3bfdfefe default
Show More
heredoctest.py
13 lines | 331 B | text/x-python | PythonLexer
import doctest, tempfile, os, sys
if __name__ == "__main__":
fd, name = tempfile.mkstemp(suffix='hg-tst')
try:
os.write(fd, sys.stdin.read())
os.close(fd)
failures, _ = doctest.testfile(name, module_relative=False)
if failures:
sys.exit(1)
finally:
os.remove(name)