# HG changeset patch # User Jeff Hammel # Date 1316397618 25200 # Node ID 726c3d2887332506aa0da35db2f816a98a8213c3 # Parent 0b534c8881de614b6ba48c994c977ce6978ede98 * add convenience import in __init__ * stub out HgFetcher a tad diff -r 0b534c8881de -r 726c3d288733 fetch/__init__.py --- a/fetch/__init__.py Sun Sep 18 18:52:08 2011 -0700 +++ b/fetch/__init__.py Sun Sep 18 19:00:18 2011 -0700 @@ -1,1 +1,2 @@ # +from main import * diff -r 0b534c8881de -r 726c3d288733 fetch/main.py --- a/fetch/main.py Sun Sep 18 18:52:08 2011 -0700 +++ b/fetch/main.py Sun Sep 18 19:00:18 2011 -0700 @@ -73,12 +73,19 @@ ### VCS fetchers using executable +import subprocess + if which('hg'): class HgFetcher(Fetcher): """checkout a mercurial repository""" type = 'hg' + def __call__(self, dest): + if os.path.exits(dest): + assert os.path.isdir(dest) and os.path.exists(os.path.join(dest, '.hg')) + pass # TODO + fetchers.append(HgFetcher) class GitFetcher(Fetcher):