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

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.