Wiki

Clone wiki

hgexportfiles / Home

HgExportFiles

HG extension: Export all files changed in a revision or revision range to a directory. File contents is retrieved from the highest given revision context.

Files in the specified output directory will be overwritten. Deleted files are not included in the file export. Cross-branch export (specifying revisions in two branches) is not allowed (and does not make much sense).

When enabling the 'marker' option, a /.rev directory is created in the exported fileset with a file per exported revision changeset. This directory can be uploaded with each export to provide some trackback information for the exported revisions.

By default, subrepositories are traversed and exported too. To disable this feature, pass the 'nosub' option.

Installation instructions can be found on the mercurial wiki page: using extensions.

Usage:

hg exportfiles -r 10 /tmp/export

Exports all changed files from rev 10 into /tmp/export. File contents reflects rev 10.

hg exportfiles -r 10:20 /tmp/export

Exports all changed files from rev 10 to 20 (inclusive) into /tmp/export. File contents reflects rev 20.

hg exportfiles -r 10:tip /tmp/export

Exports all changed files from rev 10 to tip into /tmp/export. File contents reflects tip rev.

Updated