Mercurial > hg > silvermirror
changeset 37:1877e2cb1118
remove commented out function; we dont use it and it probably needs to be rewritten anyway
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 15 Feb 2015 18:02:43 +0000 |
parents | 52937c25edf0 |
children | d17978d9697b |
files | silvermirror/hg.py |
diffstat | 1 files changed, 2 insertions(+), 19 deletions(-) [+] |
line wrap: on
line diff
--- 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