Issue #274 resolved

This is not a bug

kiilerix avatarkiilerix created an issue

Contrary to what thg tells me this isn't something I should report. _That_ is something I should report.

I would expect Aborts to pop up somehow and tell me I'm an idiot, and perhaps give me the option of seeing the traceback.

** Please report this bug to http://bitbucket.org/tortoisehg/thg/issues
** Mercurial version (1.8).  TortoiseHg version (2.0)
** Command: 
** CWD: /home/mk/freerdp
** Extensions loaded: mq, extdiff, graphlog, patchbomb, convert, eol, hg-git, rebase, fetch, parentrevspec
** Python version: 2.7 (r27:82500, Sep 16 2010, 18:03:06) [GCC 4.5.1 20100907 (Red Hat 4.5.1-3)]
** Qt-4.7.0 PyQt-4.7.4
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/tortoisehg/hgqt/repowidget.py", line 705, in repositoryChanged
    self.rebuildGraph()
  File "/usr/lib/python2.7/site-packages/tortoisehg/hgqt/repowidget.py", line 668, in rebuildGraph
    self.setupModels()
  File "/usr/lib/python2.7/site-packages/tortoisehg/hgqt/repowidget.py", line 557, in setupModels
    self.revsetfilter, self)
  File "/usr/lib/python2.7/site-packages/tortoisehg/hgqt/repomodel.py", line 105, in __init__
    self.setBranch(branch)
  File "/usr/lib/python2.7/site-packages/tortoisehg/hgqt/repomodel.py", line 119, in setBranch
    self.ensureBuilt(row=0)
  File "/usr/lib/python2.7/site-packages/tortoisehg/hgqt/repomodel.py", line 171, in ensureBuilt
    self.graph.build_nodes(nnodes=required, rev=buildrev)
  File "/usr/lib/python2.7/site-packages/tortoisehg/hgqt/graph.py", line 309, in build_nodes
    for vnext in self.grapher:
  File "/usr/lib/python2.7/site-packages/tortoisehg/hgqt/graph.py", line 230, in mq_patch_grapher
    for patchname in reversed(repo.thgmqunappliedpatches):
  File "/usr/lib/python2.7/site-packages/mercurial/util.py", line 169, in __get__
    result = self.func(obj)
  File "/usr/lib/python2.7/site-packages/tortoisehg/hgqt/thgrepo.py", line 258, in thgmqunappliedpatches
    return [pname for pname in q.series if not pname in applied]
  File "/usr/lib/python2.7/site-packages/mercurial/util.py", line 169, in __get__
    result = self.func(obj)
  File "/usr/lib/python2.7/site-packages/hgext/mq.py", line 306, in series
    self.parse_series()
  File "/usr/lib/python2.7/site-packages/hgext/mq.py", line 385, in parse_series
    (patch, self.join(self.series_path)))
Abort: p8 appears more than once in /home/mk/freerdp/.hg/patches/series

Comments (4)

  1. Steve Borho
    • changed status to open

    Yeah, we should handle these better.

    Care to make a stab at this? Have a look at _recoverableexc in tortoisehg/hgqt/run.py around line 363

  2. kiilerix

    Another not-a-bug:

    ** Please report this bug to http://bitbucket.org/tortoisehg/thg/issues
    ** Mercurial version (1.8).  TortoiseHg version (2.0)
    ** Command: 
    ** CWD: /home/mk/lars
    ** Extensions loaded: mq, extdiff, graphlog, patchbomb, convert, eol, hg-git, rebase, fetch, parentrevspec
    ** Python version: 2.7 (r27:82500, Sep 16 2010, 18:03:06) [GCC 4.5.1 20100907 (Red Hat 4.5.1-3)]
    ** Qt-4.7.0 PyQt-4.7.4
    Recoverable runtime error (stderr):
    Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/tortoisehg/hgqt/thgrepo.py", line 86, in timerEvent
        def timerEvent(self, event):
    KeyboardInterrupt
    
  3. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.