# HG changeset patch # User Jeff Hammel # Date 1424023363 0 # Node ID 1877e2cb111842d895afafd5698cbabe126bccc9 # Parent 52937c25edf0ef3eea1518cf7f54e1e29ceb7f67 remove commented out function; we dont use it and it probably needs to be rewritten anyway diff -r 52937c25edf0 -r 1877e2cb1118 silvermirror/hg.py --- a/silvermirror/hg.py Mon Feb 02 00:49:01 2015 +0000 +++ b/silvermirror/hg.py Sun Feb 15 18:02:43 2015 +0000 @@ -22,6 +22,8 @@ """ get changes from host on path """ + + try: repo = hglib.open(path) print ('Updating {}:'.format(path)) @@ -31,25 +33,6 @@ repo = hglib.clone(source, path) -# TODO: local repository -# def repositories(path): -# """ -# return all hg repositories in a path -# """ - -# ui = ui.ui() -# files = [ os.path.join(path, f) for f in os.listdir(path) ] -# directories = [ f for f in files if os.path.isdir(f) ] - -# repos = [] -# for d in directories: -# try: -# repo = hg.repository(ui, d) -# repos.append(os.path.basename(d)) -# except mercurial.repo.RepoError: -# pass -# return repos - def repositories(url): """ returns the list of repositories under a URL of an hg server