On Mar 26, 7:53 pm, "William Stein" <[EMAIL PROTECTED]> wrote:
> Hi Jason (or anybody),
>
> Does anybody have a clue if it is possible to take a directory (e.g.,
> devel/sage/) with an .hg repo directory
> in it, and do the following:
>
> (1) export everything in the .hg repo to something (perhaps a ton of
> stuff) in plain text format,
> (2) delete .hg
> (3) do something that recovers the .hg directory from the output of (1).
There is nothing that does that currently that I am awake of. I did
play around with this and wrote some dummy scripts that
a) export every commit from a tree
b) create an empty hg repo
c) reimport each exported changeset
The md5sum of the files inside the .hg repo is different afterwards,
but parents and changesets and all that fun stuff remains the same.
> Note that just doing hg_sage.export([0..10000]), where say 10000 is
> the tip, doesn't work, because
> that looses all information about branching, etc., hence fails completely.
I need to see what happens with branches, but I am not sure what
happens in case of multi head merges.
> If mercurial can't do the above, that is a _very_ serious problem for
> the longterm viability of
> Mercurial at least for Sage. So any ideas how to do the above?
>
> The reason for doing (1) -- (3) is that it is possible to scan an .hg
> directory with antivirus tools.
> Thus something silly like "base64-encode a tarball of .hg" won't work.
>
> -- william
Cheers,
Michael
> --
> William Stein
> Associate Professor of Mathematics
> University of Washingtonhttp://wstein.org
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---