Commits

Anonymous committed e8e1199

hggtk: RepoError is no longer in mercurial.hg as of Mercurial 1.0

cset f89fd07fc51d, to be exact.

  • Participants
  • Parent commits b017ee4

Comments (0)

Files changed (11)

 from tempfile import mkstemp
 from dialog import *
 from mercurial import hg, ui, extensions
+from mercurial.repo import RepoError
 from thgconfig import ConfigDialog
 from hgcmd import CmdDialog
 
         try:
             repo = hg.repository(ui.ui(), path=self.root)
             self.repo = repo
-        except hg.RepoError:
+        except RepoError:
             self.repo = None
             return
 

hggtk/logfilter.py

 from gdialog import *
 from mercurial.node import *
 from mercurial import cmdutil, util, hg, ui
+from mercurial.repo import RepoError
 from shlib import shell_notify, set_tortoise_icon
 
 class FilterDialog(gtk.Dialog):
 
         try:
             self.repo = hg.repository(ui.ui(), path=root)
-        except hg.RepoError:
+        except RepoError:
             return None
 
         self.set_default_size(350, 120)
 from mercurial import util, hg, ui
 from hgcmd import CmdDialog
 from shlib import set_tortoise_icon, shell_notify
+from mercurial.repo import RepoError
 import histselect
 
 class MergeDialog(gtk.Window):
             # FIXME: force hg to refresh parents info
             del self.repo
             self.repo = hg.repository(ui.ui(), path=self.root)
-        except hg.RepoError:
+        except RepoError:
             return None
 
         # populate parent rev data

hggtk/recovery.py

 import os
 import threading
 from mercurial import hg, ui, util 
+from mercurial.repo import RepoError
 from mercurial.node import *
 from dialog import error_dialog, question_dialog
 from hglib import HgThread
             return
         try:
             repo = hg.repository(ui.ui(), path=self.root)
-        except hg.RepoError:
+        except RepoError:
             self.write("Unable to find repo at %s\n" % (self.root), False)
             return
         pl = repo.workingctx().parents()

hggtk/revisions.py

 import gobject
 import pango
 from mercurial import hg, ui, cmdutil, util
+from mercurial.repo import RepoError
 from mercurial.i18n import _
 from mercurial.node import *
 from dialog import error_dialog, question_dialog
         u = ui.ui()
         try:
             repo = hg.repository(u, path=self.root)
-        except hg.RepoError:
+        except RepoError:
             return None
         self.repo = repo
         
 import hglib
 from dialog import question_dialog, error_dialog
 from mercurial import hg, ui, commands, cmdutil, util
+from mercurial.repo import RepoError
 from mercurial.hgweb import server
 from mercurial.i18n import _
 from shlib import set_tortoise_icon
     def _get_config(self):
         try:
             repo = hg.repository(ui.ui(), path=self._root)
-        except hg.RepoError:
+        except RepoError:
             print 'no repository found'
             gtk.main_quit()
         self.defport = repo.ui.config('web', 'port') or '8000'
 import os
 import threading
 from mercurial import hg, ui, util 
+from mercurial.repo import RepoError
 from dialog import error_dialog, question_dialog
 from hglib import HgThread
 import shlib
                     raise "unknown sort key '%s'" % sort
                 paths.sort(sortfunc)
             return paths
-        except hg.RepoError:
+        except RepoError:
             return None
 
     def _btn_remotepath_clicked(self, button):
 import gtk
 from dialog import question_dialog, error_dialog, info_dialog
 from mercurial import hg, ui, cmdutil, util
+from mercurial.repo import RepoError
 from mercurial.i18n import _
 from mercurial.node import *
 
 
         try:
             self.repo = hg.repository(ui.ui(), path=self.root)
-        except hg.RepoError:
+        except RepoError:
             pass
 
         # build dialog
 import gtk
 import gobject
 from mercurial import hg, ui, cmdutil, util, node
+from mercurial.repo import RepoError
 from mercurial.i18n import _
 
 def get_tag_list(path):
     u = ui.ui()
     try:
         repo = hg.repository(u, path=root)
-    except hg.RepoError:
+    except RepoError:
         return None
 
     l = repo.tagslist()

hggtk/thgconfig.py

 import os
 import pango
 from mercurial import hg, ui, cmdutil, util
+from mercurial.repo import RepoError
 from dialog import error_dialog, question_dialog
 import shlib
 import shelve
         self.ui = ui.ui()
         try:
             repo = hg.repository(self.ui, path=root)
-        except hg.RepoError:
+        except RepoError:
             repo = None
             if configrepo:
                 error_dialog('No repository found', 'no repo at ' + root)
 from dialog import *
 from mercurial.node import *
 from mercurial import util, hg, ui
+from mercurial.repo import RepoError
 from shlib import shell_notify, set_tortoise_icon
 from hglib import rootpath
 
         u = ui.ui()
         try:
             self.repo = hg.repository(u, path=self.root)
-        except hg.RepoError:
+        except RepoError:
             return None
 
         # set dialog title
             # FIXME: force hg to refresh parents info
             del self.repo
             self.repo = hg.repository(ui.ui(), path=self.root)
-        except hg.RepoError:
+        except RepoError:
             return None
 
         # populate parent rev data