mercurial/commands.py
changeset 12270 166b9866580a
parent 12269 877236cdd437
child 12271 01dc8ba3e032
--- a/mercurial/commands.py	Mon Sep 13 13:09:11 2010 +0200
+++ b/mercurial/commands.py	Mon Sep 13 13:09:20 2010 +0200
@@ -47,7 +47,8 @@
     """
 
     m = cmdutil.match(repo, pats, opts)
-    rejected = cmdutil.add(ui, repo, m, opts.get('dry_run'))
+    rejected = cmdutil.add(ui, repo, m, opts.get('dry_run'),
+                           opts.get('subrepos'), prefix="")
     return rejected and 1 or 0
 
 def addremove(ui, repo, *pats, **opts):
@@ -4001,7 +4002,8 @@
 ]
 
 table = {
-    "^add": (add, walkopts + dryrunopts, _('[OPTION]... [FILE]...')),
+    "^add": (add, walkopts + subrepoopts + dryrunopts,
+             _('[OPTION]... [FILE]...')),
     "addremove":
         (addremove, similarityopts + walkopts + dryrunopts,
          _('[OPTION]... [FILE]...')),