Issue #3414 new

Unable to run Workbench on one of the repositories.

Anonymous created an issue

Trying to run Hg Workbench on one of my repository, I get an error. I don't know what caused it - several other repositories in this directory working OK. TortoiseHg suggest adding it there with this bug report:

** Mercurial version (2.7.2).  TortoiseHg version (2.9.2)
** Command: --nofork workbench
** CWD: I:\network\oasychev-correctwriting
** Encoding: cp1251
** Extensions loaded: 
** Python version: 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)]
** Windows version: sys.getwindowsversion(major=5, minor=1, build=2600, platform=2, service_pack='Service Pack 3')
** Processor architecture: x86
** Qt-4.8.4 PyQt-4.10.2 QScintilla-2.7.2
Traceback (most recent call last):
  File "tortoisehg\hgqt\run.pyo", line 48, in dispatch
  File "tortoisehg\hgqt\run.pyo", line 224, in _runcatch
  File "tortoisehg\hgqt\run.pyo", line 304, in runcommand
  File "tortoisehg\hgqt\run.pyo", line 355, in _runcommand
  File "tortoisehg\hgqt\run.pyo", line 309, in checkargs
  File "tortoisehg\hgqt\run.pyo", line 303, in <lambda>
  File "tortoisehg\hgqt\qtapp.pyo", line 286, in __call__
  File "tortoisehg\hgqt\qtapp.pyo", line 329, in _createdialog
  File "mercurial\util.pyo", line 507, in check
  File "tortoisehg\hgqt\run.pyo", line 832, in log
  File "tortoisehg\hgqt\run.pyo", line 401, in _workbench
  File "tortoisehg\hgqt\workbench.pyo", line 714, in showRepo
  File "tortoisehg\hgqt\workbench.pyo", line 683, in openRepo
  File "tortoisehg\hgqt\workbench.pyo", line 890, in addRepoTab
  File "tortoisehg\hgqt\repowidget.pyo", line 98, in __init__
  File "mercurial\localrepo.pyo", line 710, in parents
  File "mercurial\context.pyo", line 219, in parents
  File "mercurial\util.pyo", line 277, in __get__
  File "mercurial\context.pyo", line 927, in _parents
  File "mercurial\dirstate.pyo", line 210, in parents
  File "mercurial\util.pyo", line 277, in __get__
  File "mercurial\dirstate.pyo", line 83, in _pl
IOError: [Errno 22] Invalid argument

Comments (6)

  1. Oleg Sychev

    It seems that file dirstate was corrupted somehow. The files were on the flash drive. Fresh clone of that repository from the net on this flash drive works.

  2. Oleg Sychev

    Windows report some size of the file, but opening it in any text/hex editor reveals nothing. Changing file undo.dirstate fix error, but change state of repository.

    File on flash drive may be corrupted due to unsafe eject. Unfortunately, it's impossible to safely eject flash drive after TortoiseHg worked on it (i.e. commit or workbench tools were called) - it blocks the drive permanently, not releasing some files.

  3. Yuya Nishihara

    Unfortunately, it's impossible to safely eject flash drive after TortoiseHg worked on it (i.e. commit or workbench tools were called) - it blocks the drive permanently, not releasing some files.

    It is #1783 and #3381.

    BTW, is the flash drive formatted as NTFS? If not, FAT32 may cause this kind of problems.

  4. Log in to comment