[cig-commits] commit: Make fetch detection more reliable.

Mercurial hg at geodynamics.org
Mon Nov 24 11:27:18 PST 2008


changeset:   82:f5f1d398f1db
user:        Simon Law <simon at akoha.org>
date:        Mon Jan 28 12:19:24 2008 -0500
files:       forest.py
description:
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 @@ except:
             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 @@ def uisetup(ui):
         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



More information about the CIG-COMMITS mailing list