mercurial --> plain text --> mercurial

Vladimir Marek Vladimir.Marek at Sun.COM
Thu Mar 27 10:23:33 CDT 2008


> > > Sage (http://www.sagemath.org/) 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.
> > 
> > tar ? Maybe you could explain your motivation.

> Thanks for the reply. The concern is that someone could sneak a virus or
> malignant code in the in the .hg/ directory (or anywhere else) that would
> damage/alter part of the meta-data in the repo.


Hmm, I still don't see your point. You want to backup your data for the
case that someone unauthorised modifies your repository?


> How would you use tar to do the above?


(1) cd my_repository
    tar cf my_repository_hg.tar .hg
(2) rm -rf .hg
(3) tar xf my_repository_hg.tar


-- 
	Vlad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 193 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial/attachments/20080327/cf20fc97/attachment.pgp 


More information about the Mercurial mailing list