Recovering from a deleted store/data/*i file (or merging commits of two "unrelated" repositories containg the same files?)
Benito van der Zander
benito at benibela.de
Wed Oct 24 17:00:04 UTC 2012
> It is, but so are backups and/or clones.
That repository was supposed to be the backup!
And a clone was there, but did not help, because I did a "locate
filename | grep .o | xargs rm"...
> MQ does not guarantee perfect round-trip integrity (due to limitations
> of existing patch formats).
But the data (file changes, time, commit message) will all be there?
I just noticed that I don't have the last 2 weeks of file content, so
restoring the revlog will not work anyways...
Perhaps use a bash script to do that from the wiki for the first 4 years
and then use MQ for the last weeks
On 10/23/2012 05:04 PM, Matt Mackall wrote:
> On Tue, 2012-10-23 at 14:38 +0200, Benito van der Zander wrote:
>>> Someone who understands what they're doing could probably accomplish it
>>> with the convert tool or possibly the dump/undump tools, provided all
>>> the necessary data exists somewhere. That's either you (after some
>>> research) or some expert you pay $$$.
>> I hoped someone had already a tool for that, lying somewhere online around
>>
>> An accidentally deleted file is not so uncommon, is it?
> It is, but so are backups and/or clones.
>
>>> If you want to do it yourself, I recommend you start by reading this
>>> stuff:
>>>
>>> http://mercurial.selenic.com/wiki/Revlog
>>> http://mercurial.selenic.com/wiki/RevlogNG
>>> http://mercurial.selenic.com/wiki/Presentations?action=AttachFile&do=view&target=ols-mercurial-paper.pdf
>>> http://www.selenic.com/hg/file/default/contrib/dumprevlog
>> Or dump everything with the MQ extension and fix it there?
>> At least I have looked at that file format before
> MQ does not guarantee perfect round-trip integrity (due to limitations
> of existing patch formats).
>
More information about the Mercurial
mailing list