Wednesday, June 6, 2012

Mercurial, Google Drive, and Missing revlogs

So I finally took the time to write something couldn't be done in 140 characters.

Today I was wanting to push a locally cloned Hg repo to my account on BitBucket. When I tried, I got hit with a message stating that revision logs are missing for a few files.

Googling it, I found that this means my repo was corrupt. Joy.

Doing a hg verify gave me:

data/CareWeb/jquery/demos/datepicker/animation.html.i@1: missing revlog!
 1: empty or missing CareWeb/jquery/demos/datepicker/animation.html

My first thought was: WTF did I ever check in jquery demo source? Oh well, anyway...

I started following the instructions here to fix my corruption. At some point I realized that Google Drive had renamed some of my hg revision date store files with a (1) in the file name.

I went into \.hg\store\data, found the files that had been renamed, fixed them, and that fixed me up.

In case anyone else is odd enough to use Mercurial and have their source also sitting in a Google Drive.


1 comment:

Anonymous said...

Hi! Just writing to inform that you're not alone!
I triyed mercurial with GDrive but I've got a real mess... Giving up with this combination.
Thanks for this post!