comparison mercurial/commands.py @ 3184:545b6d718593

add remoteopts to bundle command
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Fri, 29 Sep 2006 20:00:24 +0200
parents 37b53487c341
children 182bdd589cbe
comparison
equal deleted inserted replaced
3183:37b53487c341 3184:545b6d718593
759 759
760 Unlike import/export, this exactly preserves all changeset 760 Unlike import/export, this exactly preserves all changeset
761 contents including permissions, rename data, and revision history. 761 contents including permissions, rename data, and revision history.
762 """ 762 """
763 dest = ui.expandpath(dest or 'default-push', dest or 'default') 763 dest = ui.expandpath(dest or 'default-push', dest or 'default')
764 setremoteconfig(ui, opts)
764 other = hg.repository(ui, dest) 765 other = hg.repository(ui, dest)
765 o = repo.findoutgoing(other, force=opts['force']) 766 o = repo.findoutgoing(other, force=opts['force'])
766 cg = repo.changegroup(o, 'bundle') 767 cg = repo.changegroup(o, 'bundle')
767 write_bundle(cg, fname) 768 write_bundle(cg, fname)
768 769
2728 ] + walkopts, 2729 ] + walkopts,
2729 _('hg backout [OPTION]... REV')), 2730 _('hg backout [OPTION]... REV')),
2730 "bundle": 2731 "bundle":
2731 (bundle, 2732 (bundle,
2732 [('f', 'force', None, 2733 [('f', 'force', None,
2733 _('run even when remote repository is unrelated'))], 2734 _('run even when remote repository is unrelated')),
2735 ] + remoteopts,
2734 _('hg bundle FILE DEST')), 2736 _('hg bundle FILE DEST')),
2735 "cat": 2737 "cat":
2736 (cat, 2738 (cat,
2737 [('o', 'output', '', _('print output to file with formatted name')), 2739 [('o', 'output', '', _('print output to file with formatted name')),
2738 ('r', 'rev', '', _('print the given revision')), 2740 ('r', 'rev', '', _('print the given revision')),