Changeset 6fa25f6ea905…
Parent 28f5487e7fb4…
by
Changes to 4 files · Browse files at 6fa25f6ea905 Showing diff from parent 28f5487e7fb4 Diff from another changeset...
@@ -20,14 +20,9 @@ from mercurial import cmdutil, context, util, ui, hg, patch
from gdialog import *
from hgcmd import CmdDialog
-from hglib import toutf, fromutf, displaytime, hgcmd_toq, diffexpand
+from hglib import toutf, fromutf, displaytime, hgcmd_toq, diffexpand, LookupError
from gtklib import StatusBar
-try:
- from mercurial.error import LookupError
-except ImportError:
- from mercurial.revlog import LookupError
-
class ChangeSet(GDialog):
"""GTK+ based dialog for displaying repository logs
"""
|
@@ -14,7 +14,7 @@ import threading, thread2
import time
from mercurial import hg, ui, util, revlog
-from hglib import hgcmd_toq, toutf, fromutf, gettabwidth, displaytime
+from hglib import hgcmd_toq, toutf, fromutf, gettabwidth, displaytime, LookupError
from gdialog import *
from vis import treemodel
from vis.colormap import AnnotateColorMap, AnnotateColorSaturation
@@ -412,7 +412,7 @@ ctx = self.repo.changectx(None).parents()[0]
try:
fctx = ctx.filectx(path)
- except revlog.LookupError:
+ except LookupError:
Prompt('File is unrevisioned',
'Unable to annotate ' + path, self).run()
return
|
@@ -15,6 +15,11 @@ from mercurial.dispatch import ParseError
try:
+ from mercurial.revlog import LookupError
+except ImportError:
+ from mercurial.error import LookupError
+
+try:
try:
from mercurial import demandimport
except:
|
@@ -15,7 +15,7 @@ import gobject
from mercurial import hg, ui, cmdutil, util, node
from mercurial.i18n import _
-from hglib import RepoError
+from hglib import RepoError, LookupError
def get_tag_list(path):
root = path
|
Loading...