how to import tags?

Hollis Blanchard hollis_blanchard at
Thu May 24 14:20:01 EDT 2018

On 05/23/2018 03:15 PM, Hollis Blanchard wrote:
> 2. Commit tags as children of the correct head.
> I don't see a 'tag' cmdline option for this, though: the parent commit 
> is the parent of the working directory, without an ability to 
> override. That means I would need to keep working directories for all 
> these mirrors, and since there are GBs of working directories and 
> millions of files, that would be significant overhead.
Looks like I can use 'hg debugsetparents' for exactly this purpose:

    hg debugsetparents REV1 [REV2]

    manually set the parents of the current working directory

         This is useful for writing repository conversion tools, but
    should be used
         with care. For example, neither the working directory nor the
    dirstate is
         updated, so file status may be incorrect after running this

I hope that debug command sticks around...

Hollis Blanchard
Mentor Graphics Emulation Division

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Mercurial-devel mailing list