Differences between revisions 1 and 7 (spanning 6 versions)
Revision 1 as of 2007-01-17 19:27:30
Size: 511
Comment: Add fetch extension page
Revision 7 as of 2010-08-28 15:07:55
Size: 829
Editor: abuehl
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
''Author: Vadim Gelfer''
Line 5: Line 7:
This extension pulls changes from a remote repository and merges new changes if needed, and finally updates the working directory. This extension is a convenience wrapper. In the simplest case, {{{hg fetch}}} acts like {{{hg pull -u}}} -- it pulls changes from a remote repository into a local one and updates the working directory. (This is like the "update" command as found in Subversion or CVS.)

If the pulled changes require merging, the fetch extension attempts an {{{hg merge}}} followed by an {{{hg commit}}}.
Line 8: Line 12:
Configure your .hgrc to enable the extension by adding following lines: To enable the extension, add the following lines to your .hgrc:
Line 12: Line 16:
fetch= hgext.fetch=
Line 22: Line 26:
----
CategoryBundledExtension

Fetch extension

This extension is currently being distributed along with Mercurial.

Author: Vadim Gelfer

Overview

This extension is a convenience wrapper. In the simplest case, hg fetch acts like hg pull -u -- it pulls changes from a remote repository into a local one and updates the working directory. (This is like the "update" command as found in Subversion or CVS.)

If the pulled changes require merging, the fetch extension attempts an hg merge followed by an hg commit.

Configuration

To enable the extension, add the following lines to your .hgrc:

[extensions]
hgext.fetch=

Usage

hg fetch [SOURCE]

Where SOURCE is a path or URL.

Use hg help fetch for additional options.


CategoryBundledExtension

FetchExtension (last edited 2013-02-22 11:11:53 by proxy01)