# HG changeset patch # User Jeff Hammel # Date 1372098538 25200 # Node ID bc17ab3c516e49f71cf6ee72a1e73f6f14a9352b # Parent 8ec5895e9229b6c117d2e9b9c2f6237462991807 notes diff -r 8ec5895e9229 -r bc17ab3c516e hq/main.py --- a/hq/main.py Mon May 20 11:51:54 2013 -0700 +++ b/hq/main.py Mon Jun 24 11:28:58 2013 -0700 @@ -40,9 +40,18 @@ def clone(self, repo, patch=None, queue=None): """ clone the repository and begin a patch queue - - path: name of a new patch to initiate + - patch: name of a new patch to initiate - queue: name of the remote queue """ + + ### TODO: initialize queue properly + # hg qinit -c + # cd `hg root`/ + # rm -rf patches + # hg clone ${queue} patches + # cd patches + # (fix hgrc) + directory = repo.rsplit('/', 1) call(['hg', 'clone', repo, directory]) os.chdir(directory)