1. TortoiseHg
  2. TortoiseHg
  3. thg
  4. Issues
Issue #1124 duplicate

Exception on QNew

Anonymous created an issue

{{{

!python

Mercurial version (1.9+10-e9264b45237d). TortoiseHg version (2.1.1) Command: --nofork workbench CWD: E:\Sources\HgLPWizard Extensions loaded: hgsubversion, rebase, graphlog, hgk, mq, eol Python version: 2.6.6 (r266:84297, Aug 24 2010, 18:13:38) [MSC v.1500 64 bit (AMD64)] Windows version: (6, 1, 7600, 2, '') Processor architecture: x64 Qt-4.7.1 PyQt-4.8.3 Traceback (most recent call last): File "tortoisehg\hgqt\repowidget.pyo", line 884, in repositoryChanged File "tortoisehg\hgqt\repowidget.pyo", line 846, in rebuildGraph File "tortoisehg\hgqt\repowidget.pyo", line 707, in setupModels File "tortoisehg\hgqt\repomodel.pyo", line 123, in init File "tortoisehg\hgqt\repomodel.pyo", line 137, in setBranch File "tortoisehg\hgqt\repomodel.pyo", line 189, in ensureBuilt File "tortoisehg\hgqt\graph.pyo", line 308, in build_nodes File "tortoisehg\hgqt\graph.pyo", line 229, in mq_patch_grapher File "mercurial\util.pyo", line 169, in get File "tortoisehg\hgqt\thgrepo.pyo", line 301, in thgmqunappliedpatches File "mercurial\util.pyo", line 169, in get File "hgext\mq.pyo", line 312, in series File "hgext\mq.pyo", line 377, in parseseries File "mercurial\util.pyo", line 169, in get File "hgext\mq.pyo", line 307, in fullseries File "mercurial\scmutil.pyo", line 144, in read File "mercurial\scmutil.pyo", line 232, in call File "mercurial\windows.pyo", line 20, in posixfile IOError: [Errno 2] E:\Sources\HgLPWizard.hg\patches\series: The system cannot find the file specified

}}}

Comments (5)

  1. Anonymous

    I got an identical stack, header is:

    ** Mercurial version (1.9.2).  TortoiseHg version (2.1.3)
    ** Command: 
    ** CWD: C:\Windows\system32
    ** Encoding: cp1252
    ** Extensions loaded: rebase, transplant, mq
    ** Python version: 2.6.6 (r266:84297, Aug 24 2010, 18:13:38) [MSC v.1500 64 bit (AMD64)]
    ** Windows version: (6, 1, 7601, 2, 'Service Pack 1')
    ** Processor architecture: x64
    ** Qt-4.7.1 PyQt-4.8.3
    

    This was in response to QNewing a subset of changed files on top of a single named patch.

    $ ls .hg\patches
    2011-09-02_12-33-24_r193+.diff  ipa-debugging.patch  series  status
    
    $ cat .hg\patches\series
    ipa-debugging.patch
    2011-09-02_12-33-24_r193+.diff
    

    So that looks normal. Fortunately, the repo state is all as expected, qpush, qpop etc... all still work with the new patch.

    Some more info: I have a subrepo, but no paths intersect it. Neither patch nor current working dir changes share files. There are several large uncommited modified binary files in the working dir (14 1.6MB), including a rename, so potentially a race.

  2. Anonymous

    Another data point:

    ** Mercurial version (1.9.2).  TortoiseHg version (2.1.3)
    ** Command: --nofork workbench
    ** CWD: U:\vimfiles
    ** Encoding: cp1252
    ** Extensions loaded: transplant, mq
    ** Python version: 2.6.6 (r266:84297, Aug 24 2010, 18:13:38) [MSC v.1500 64 bit (AMD64)]
    ** Windows version: (5, 2, 3790, 2, 'Service Pack 2')
    ** Processor architecture: x64
    ** Qt-4.7.1 PyQt-4.8.3
    Traceback (most recent call last):
      File "tortoisehg\hgqt\repowidget.pyo", line 904, in repositoryChanged
      File "tortoisehg\hgqt\repowidget.pyo", line 866, in rebuildGraph
      File "tortoisehg\hgqt\repowidget.pyo", line 727, in setupModels
      File "tortoisehg\hgqt\repomodel.pyo", line 123, in __init__
      File "tortoisehg\hgqt\repomodel.pyo", line 140, in setBranch
      File "tortoisehg\hgqt\repomodel.pyo", line 192, in ensureBuilt
      File "tortoisehg\hgqt\graph.pyo", line 308, in build_nodes
      File "tortoisehg\hgqt\graph.pyo", line 229, in mq_patch_grapher
      File "mercurial\util.pyo", line 169, in __get__
      File "tortoisehg\hgqt\thgrepo.pyo", line 304, in thgmqunappliedpatches
      File "mercurial\util.pyo", line 169, in __get__
      File "hgext\mq.pyo", line 312, in series
      File "hgext\mq.pyo", line 377, in parseseries
      File "mercurial\util.pyo", line 169, in __get__
      File "hgext\mq.pyo", line 307, in fullseries
      File "mercurial\scmutil.pyo", line 144, in read
      File "mercurial\scmutil.pyo", line 232, in __call__
      File "mercurial\windows.pyo", line 20, in posixfile
    IOError: [Errno 2] U:\vimfiles\.hg\patches\series: The system cannot find the file specified
    

    I have nothing special that I can think of in my repository. Just 3 long-lived named branches, which I use transplant to move changes between. This is my Vim config directory. I have a small patch queue, this would have been my 3rd patch in the queue, for updates on 3rd-party plugins in my vim config. Happend on pressing "qNew" button in the workbench, after selecting a single file from the picklist, and entering a name for the patch and commit comments.

  3. Log in to comment