hg convert using regexp in the filemap
Dr Rainer Woitok
rainer.woitok at gmail.com
Sun Feb 27 17:15:59 UTC 2022
Uwe,
On Saturday, 2022-02-26 20:34:31 +0100, Uwe Brauer wrote:
> >>> "UB" == Uwe Brauer <oub at mat.ucm.es> writes:
>
> > Hi
>
> > I would like to extract a subdirectory from my main repository. That
> > subdirectory contains another subdirectory, that contains images, jpg
> > and png
>
> > So https://heavymetaldev.com/hg-repo-conversion
>
> > I tried
> > include r:regex/Folien/teil3/images/*
> > include r:regex/Folien/teil3/images2/*
> > include r:regex/Folien/teil3/images3/*
> > include Folien/teil3/master-iq.tex
>
>
> It seems that
>
> Include "Folien/teil3/images"
>
> Does the trick, strange.
It's not strange at all.
According to "hg help -v convert" the "include" directive in the filemap
file neither understands regular expressions nor Shell meta characters.
And according to the URL you gave the "r:" prefix (NOT "r:regex"!) is an
extension turned into ordinary "include" directives by the PowerShell
scripts provided, which create the filemap file to be finally used by
"hg convert --filemap ...".
However, this is a nice labour saving syntax extension which could per-
haps make it into the "convert" code ... hint, hint! :-)
Sincerely,
Rainer
More information about the Mercurial
mailing list