17 testedwith = 'internal' |
17 testedwith = 'internal' |
18 |
18 |
19 @command('fetch', |
19 @command('fetch', |
20 [('r', 'rev', [], |
20 [('r', 'rev', [], |
21 _('a specific revision you would like to pull'), _('REV')), |
21 _('a specific revision you would like to pull'), _('REV')), |
22 ('e', 'edit', None, _('edit commit message')), |
22 ('e', 'edit', None, _('invoke editor on commit messages')), |
23 ('', 'force-editor', None, _('edit commit message (DEPRECATED)')), |
23 ('', 'force-editor', None, _('edit commit message (DEPRECATED)')), |
24 ('', 'switch-parent', None, _('switch parents when merging')), |
24 ('', 'switch-parent', None, _('switch parents when merging')), |
25 ] + commands.commitopts + commands.commitopts2 + commands.remoteopts, |
25 ] + commands.commitopts + commands.commitopts2 + commands.remoteopts, |
26 _('hg fetch [SOURCE]')) |
26 _('hg fetch [SOURCE]')) |
27 def fetch(ui, repo, source='default', **opts): |
27 def fetch(ui, repo, source='default', **opts): |