Possible mercurial bug: hg depot on dual-boot machine

Dave Schaefer dave.schaefer at gmail.com
Thu Aug 2 22:12:11 CDT 2007


Hello,

I'm not sure if this qualifies as a bug or not but I thought I would
submit it. I'm currently running a machine that dual-boots Win2k and
Ubuntu. I had installed Mercurial while logged in to  Windows on a
FAT32 drive that can be read by both operating systems. I then grabbed
a copy of the mercurial repository for the project I'm working on and
put it on the same drive. Just now I have installed mercurial on my
Ubuntu system and was attempting to read changed files (using 'hg
status') before submitting some changes.

When I issued the 'hg status' command I got the following error message:

"** unknown exception encountered, details follow
** report bug details to mercurial at selenic.com
Traceback (most recent call last):
  File "/usr/bin/hg", line 13, in ?
    commands.run()
  File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line
2024, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line
2160, in dispatch
    repo = hg.repository(ui=u, path=path)
  File "/usr/lib/python2.4/site-packages/mercurial/hg.py", line 28, in
repository
    return localrepo.localrepository(ui, path, create)
  File "/usr/lib/python2.4/site-packages/mercurial/localrepo.py", line
33, in __init__
    self.changelog = changelog.changelog(self.opener)
  File "/usr/lib/python2.4/site-packages/mercurial/changelog.py", line
13, in __init__
    revlog.__init__(self, opener, "00changelog.i", "00changelog.d")
  File "/usr/lib/python2.4/site-packages/mercurial/revlog.py", line
199, in __init__
    e = struct.unpack(indexformat, i[f:f + s])
struct.error: unpack str size does not match format"


I realized this was because I had not yet set my depot location with
'hg init' on the linux machine. Once I did this 'hg status' shows the
list of changed files just fine. I thought I would report this in case
you want to add some sort of user-friendly error message stating that
no mercurial depot has been set up yet. Even if not I thought you
might be interested.


If you need any more information just ask.

Thanks,
Dave


More information about the Mercurial mailing list