changeset 82:f5f1d398f1db

Make fetch detection more reliable.
author Simon Law <simon@akoha.org>
date Mon, 28 Jan 2008 12:19:24 -0500
parents f2e41cfb11c1
children 715440e45bf4
files forest.py
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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