hgext/fetch.py
changeset 40293 c303d65d2e34
parent 36607 c6061cadb400
child 41399 5cb8158a61f7
equal deleted inserted replaced
40292:9c6473d2038b 40293:c303d65d2e34
    39      _('a specific revision you would like to pull'), _('REV')),
    39      _('a specific revision you would like to pull'), _('REV')),
    40     ('', 'edit', None, _('invoke editor on commit messages')),
    40     ('', 'edit', None, _('invoke editor on commit messages')),
    41     ('', 'force-editor', None, _('edit commit message (DEPRECATED)')),
    41     ('', 'force-editor', None, _('edit commit message (DEPRECATED)')),
    42     ('', 'switch-parent', None, _('switch parents when merging')),
    42     ('', 'switch-parent', None, _('switch parents when merging')),
    43     ] + cmdutil.commitopts + cmdutil.commitopts2 + cmdutil.remoteopts,
    43     ] + cmdutil.commitopts + cmdutil.commitopts2 + cmdutil.remoteopts,
    44     _('hg fetch [SOURCE]'))
    44     _('hg fetch [SOURCE]'),
       
    45     helpcategory=command.CATEGORY_REMOTE_REPO_MANAGEMENT)
    45 def fetch(ui, repo, source='default', **opts):
    46 def fetch(ui, repo, source='default', **opts):
    46     '''pull changes from a remote repository, merge new changes if needed.
    47     '''pull changes from a remote repository, merge new changes if needed.
    47 
    48 
    48     This finds all changes from the repository at the specified path
    49     This finds all changes from the repository at the specified path
    49     or URL and adds them to the local repository.
    50     or URL and adds them to the local repository.