37 [('r', 'rev', [], |
36 [('r', 'rev', [], |
38 _('a specific revision you would like to pull'), _('REV')), |
37 _('a specific revision you would like to pull'), _('REV')), |
39 ('e', 'edit', None, _('invoke editor on commit messages')), |
38 ('e', 'edit', None, _('invoke editor on commit messages')), |
40 ('', 'force-editor', None, _('edit commit message (DEPRECATED)')), |
39 ('', 'force-editor', None, _('edit commit message (DEPRECATED)')), |
41 ('', 'switch-parent', None, _('switch parents when merging')), |
40 ('', 'switch-parent', None, _('switch parents when merging')), |
42 ] + commands.commitopts + commands.commitopts2 + commands.remoteopts, |
41 ] + cmdutil.commitopts + cmdutil.commitopts2 + cmdutil.remoteopts, |
43 _('hg fetch [SOURCE]')) |
42 _('hg fetch [SOURCE]')) |
44 def fetch(ui, repo, source='default', **opts): |
43 def fetch(ui, repo, source='default', **opts): |
45 '''pull changes from a remote repository, merge new changes if needed. |
44 '''pull changes from a remote repository, merge new changes if needed. |
46 |
45 |
47 This finds all changes from the repository at the specified path |
46 This finds all changes from the repository at the specified path |