extract one single file and its history from a repo

Simon King simon at simonking.org.uk
Fri Sep 30 08:27:15 UTC 2016


On Thu, Sep 29, 2016 at 8:30 PM, Uwe Brauer <oub at mat.ucm.es> wrote:
> Hi
>
> I basically want to cut one specific file and its history from my repo,
> and import it into a new single file repo. The natural candidate would
> be the export command, however I don't find any option which would allow
> me to specify a specific file.
>
> Is there any solution to my problem?
>

It looks like export only exports whole changesets. You probably want
to use "hg convert" with a filemap that just specifies your single
file.

https://www.mercurial-scm.org/wiki/ConvertExtension#A--filemap

Hope that helps,

Simon



More information about the Mercurial mailing list