mercurial --> plain text --> mercurial
alpar at cs.elte.hu
Thu Mar 27 11:05:40 CDT 2008
On Thu, 2008-03-27 at 15:56 +0000, didier deshommes wrote:
> Vladimir Marek <Vladimir.Marek <at> Sun.COM> writes:
> > Hmm, I still don't see your point. You want to backup your data for the
> > case that someone unauthorised modifies your repository?
> We want to be able to get a set of patches (in text format) that are extracted
> from the repo. Then we want to be able to do an "hg init" and reimport all
> patch sets in the same order. If we have multiple parents, this is not
> so straightforward.
What about something like this:
hg export -g `for((i=0;i<1234;i++)); do echo $i; done` >dump.patch
where 1234 is the last commit?
for((i=0;i<1234;i++)); do hg export -g $i > dump-$i.patch; done
But I still cannot understand why on earth do you want to do that.
> Mercurial mailing list
> Mercurial at selenic.com
More information about the Mercurial