recipes/apycot.checkout.mercurial.py
author David Douard <david.douard@logilab.fr>
Sun, 09 Nov 2014 20:07:45 +0100
changeset 1773 35a2edaa84e5
parent 1740 f3137466457a
permissions -rw-r--r--
[migration] add a migration script for 4.0.0

# 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)