Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.4rc1, 0.4rc2, and 0.4rc3

hggtk/hglib: RepoError resides in mercurial.repo

Changeset c45f40e6eab6

Parent e1e3fb7634e9

by TK Soh

Changes to one file · Browse files at c45f40e6eab6 Showing diff from parent e1e3fb7634e9 Diff from another changeset...

Change 1 of 3 Show Entire File hggtk/​hglib.py Stacked
 
5
6
7
 
8
9
10
 
175
176
177
178
 
179
180
181
 
294
295
296
297
 
298
299
300
 
301
302
303
 
5
6
7
8
9
10
11
 
176
177
178
 
179
180
181
182
 
295
296
297
 
298
299
300
 
301
302
303
304
@@ -5,6 +5,7 @@
 import threading  import Queue  from mercurial import hg, ui, util, extensions, commands, hook +from mercurial.repo import RepoError  from mercurial.node import *  from mercurial.i18n import _  from dialog import entry_dialog @@ -175,7 +176,7 @@
  self.ret = ret or 0   if self.postfunc:   self.postfunc(ret) - except hg.RepoError, e: + except RepoError, e:   self.ui.write_err(str(e))   except util.Abort, e:   self.ui.write_err(str(e)) @@ -294,10 +295,10 @@
  ui.setconfig("bundle", "mainreporoot", repo.root)   if not repo.local():   raise util.Abort(_("repository '%s' is not local") % path) - except hg.RepoError: + except RepoError:   if cmd not in commands.optionalrepo.split():   if not path: - raise hg.RepoError(_("There is no Mercurial repository here" + raise RepoError(_("There is no Mercurial repository here"   " (.hg not found)"))   raise   d = lambda: func(ui, repo, *args, **cmdoptions)