mercurial --> plain text --> mercurial

didier deshommes dfdeshom at
Thu Mar 27 09:24:45 CDT 2008

Hi everyone,
Sage ( uses hg for its source control and recently a
question has come up about the possibility of doing the following:

 (1) export everything in the .hg repo to something (perhaps a ton of
stuff) in plain text format,
 (2) delete .hg/ directory
 (3) do something that recovers the .hg/ directory from the output of (1).

Is this possible? Suggestions very welcome.

There already have been several suggestions about exporting a series of patches
in the right order via a python script or using (or syncing with) git since git
already does that. Both sound painful.

The original thread is at:

Please CC me (dfdeshom at or sage-devel at in your
replies, as I'm not currently subscribed to this list. Thanks!


More information about the Mercurial mailing list