# HG changeset patch # User Simon Law # Date 1201540764 18000 # Node ID f5f1d398f1db701fed2ca56418bf709e5900fa50 # Parent f2e41cfb11c113802f767b474d7bd0cd10d47f89 Make fetch detection more reliable. diff -r f2e41cfb11c1 -r f5f1d398f1db forest.py --- a/forest.py Tue Jan 15 17:06:57 2008 -0500 +++ b/forest.py Mon Jan 28 12:19:24 2008 -0500 @@ -93,8 +93,8 @@ return url, (revs or None) -def cmd_options(ui, cmd, remove=None): - aliases, spec = findcmd(ui, cmd, commands.table) +def cmd_options(ui, cmd, remove=None, table=commands.table): + aliases, spec = findcmd(ui, cmd, table) res = list(spec[1]) if remove is not None: res = [opt for opt in res @@ -1381,7 +1381,8 @@ cmdtable.update({"ffetch": (fetch, [walkhgopts, snapfileopts] + cmd_options(ui, 'fetch', - remove=('bundle',)), + remove=('bundle',), + table=hgext.fetch.cmdtable), _('hg ffetch [OPTION]... [SOURCE]'))}) except findcmd.UnknownCommand: return