add remoteopts to bundle command
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Fri, 29 Sep 2006 20:00:24 +0200
changeset 3191 545b6d718593
parent 3190 37b53487c341
child 3194 182bdd589cbe
add remoteopts to bundle command
mercurial/commands.py
--- a/mercurial/commands.py	Fri Sep 29 19:59:06 2006 +0200
+++ b/mercurial/commands.py	Fri Sep 29 20:00:24 2006 +0200
@@ -761,6 +761,7 @@
     contents including permissions, rename data, and revision history.
     """
     dest = ui.expandpath(dest or 'default-push', dest or 'default')
+    setremoteconfig(ui, opts)
     other = hg.repository(ui, dest)
     o = repo.findoutgoing(other, force=opts['force'])
     cg = repo.changegroup(o, 'bundle')
@@ -2730,7 +2731,8 @@
     "bundle":
         (bundle,
          [('f', 'force', None,
-           _('run even when remote repository is unrelated'))],
+           _('run even when remote repository is unrelated')),
+         ] + remoteopts,
          _('hg bundle FILE DEST')),
     "cat":
         (cat,