Chris, On Monday, 2021-11-15 12:08:20 +0000, you wrote:
> I want to copy a file and the history of its changes from one > repository to another. Is there a way to automate this? If there are plenty of changesets involved, check the "convert" extens- ion. You'll need to provide a filemap file containing a line include repository/relative/path/to/your/file and perhaps a rename repository/relative/path/to/your/file new/place/in/new/repo Then call $ hg convert --filemap your/filemap -s hg -d hg orig/repo tmp/repo to create a new temporary repository "tmp/repo/". If your file got re- named in its life, you'll need to include both, old and new path in the include line. Finally: $ cd new/repo $ hg pull --force tmp/repo This will create a new head in your target repository you'll then have to merge into your default branch. Sincerely, Rainer _______________________________________________ Mercurial mailing list [email protected] https://www.mercurial-scm.org/mailman/listinfo/mercurial
