On Mar 26, 11:53 am, "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).
>
> 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.
>
> 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.

I still don't understand the requirements.  First, that last paragraph
makes a lot more sense with "it is impossible" than "it is possible".
Did you mean "impossible"?

Second, are you worried about people checking in viruses, or people
concealing a virus in the .hg directory without it being checked in?

For the former concern, it seems that it would be sufficient to check
out the files, and you don't need to recreate the repository.  For the
latter concern, perhaps something based on "hg verify" would suffice
to ensure that nothing nasty has been hidden in the repository.

Carl
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to