Skip to content
Snippets Groups Projects
Commit 8074e2d0 authored by Matt Harbison's avatar Matt Harbison
Browse files

archive: add an experimental config to control the metadata file template

Experimental because given the possible complexity, it may be worth figuring out
how to load this from a file, similar to the style files for the log command,
instead of trying to stuff it on the command line.
parent 4c4e95ca
Branches
Tags
No related merge requests found
......@@ -97,7 +97,8 @@
)
opts = {
'template': default
'template': repo.ui.config('experimental', 'archivemetatemplate',
default)
}
out = util.stringio()
......
......@@ -263,6 +263,12 @@
$ hg update -Cq .
$ rm -r ../wdir
$ hg archive -S -qr 'wdir()' ../wdir \
> --config 'experimental.archivemetatemplate=archived {node|short}\n'
$ cat ../wdir/.hg_archival.txt
archived ffffffffffff
$ rm -r ../wdir
.. but first take a detour through some deep removal testing
$ hg remove -S -I 're:.*.txt' .
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment