hg log shows nothing after upgrade.

Rob Landley rob at landley.net
Tue Jan 13 18:28:22 UTC 2015



On 01/13/2015 08:37 AM, Simon King wrote:
> On Tue, Jan 13, 2015 at 9:05 AM, Rob Landley <rob at landley.net> wrote:
>>
>>
>> On 01/13/2015 02:29 AM, Matt Mackall wrote:
>>> On Tue, 2015-01-13 at 01:10 -0600, Rob Landley wrote:
>>>> Last week I backed up my home partition and reinstalled from ubuntu
>>>> 12.04 to 14.04, and now my old mercurial directories don't work. "hg
>>>> log" shows nothing, hg identify says:
>>>>
>>>>   warning: ignoring unknown working parent 382d5b9ff2d5!
>>>>   000000000000+ tip"
>>>
>>> It's not your upgrade. Nothing has changed in the repository format
>>> since 1.7 (2010) and the latest Mercurial will happily and transparently
>>> read formats back to 0.5 (the format the main hg repo happens to still
>>> be in!). Your Ubuntu has 2.0.2, your new one had 2.8.2, all ancient news
>>> now. No one's ever reported any issue like this on upgrade.
>>>
>>> >From your error message, I can see you have a .hg/dirstate file. It
>>> points to a hash. It also knows there are modifications. So far so good.
>>>
>>> What's not good is that hash is unknown and you have no log entries.
>>> What that suggests is that you don't have a .hg/store/00changelog.i
>>> file.
>>
>> $ ls -l .hg/store/00changelog.i
>> -rw-rw-r-- 1 landley landley 105152 Jan  2 00:44 .hg/store/00changelog.i
>>
> 
> Does "hg debugindex .hg/store/00changelog.i" include a line for 382d5b9ff2d5?

$ hg debugindex .hg/store/00changelog.i | grep 382d5b9
  1641    284616     133   1641    1641 382d5b9ff2d5 41efba077b75
000000000000
  1642    284749     155   1641    1642 5f8fe22a33b8 382d5b9ff2d5
000000000000

I just put a tarball of that .hg directory up at:

  http://landley.net/dothg.tar.gz

It corresponds roughly to http://landley.net/hg/toybox (a few commits
behind at this point).

Rob

> Simon
> 



More information about the Mercurial mailing list