recipes/apycot.checkout.mercurial.py
author David Douard <david.douard@logilab.fr>
Sun, 26 Oct 2014 14:43:12 +0100
changeset 1762 f3f5638439f2
parent 1740 f3137466457a
permissions -rw-r--r--
[apycotlib] set a 'tmpdir' CheckResultInfo if keep_dir is True

# normally executed with following builtin variables:
# :source_url:
# :rev:
# :dstdir:

import os
import hglib

os.environ['HGRCPATH'] = os.devnull

configs = [('ui.username', 'narval'),
           ('phases.publish', 'False'),
           ]

if not os.path.exists(dst_dir):
    os.makedirs(dst_dir)
hglib.clone(source_url, dst_dir, updaterev=rev)