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

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

cset f89fd07fc51d, to be exact.

Changeset e8e11990a43e

Parent b017ee4c3ce5

by TK Soh

Changes to 11 files · Browse files at e8e11990a43e Showing diff from parent b017ee4c3ce5 Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​hgemail.py Stacked
 
14
15
16
 
17
18
19
 
198
199
200
201
 
202
203
204
 
14
15
16
17
18
19
20
 
199
200
201
 
202
203
204
205
@@ -14,6 +14,7 @@
 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   @@ -198,7 +199,7 @@
  try:   repo = hg.repository(ui.ui(), path=self.root)   self.repo = repo - except hg.RepoError: + except RepoError:   self.repo = None   return  
 
13
14
15
 
16
17
18
 
30
31
32
33
 
34
35
36
 
13
14
15
16
17
18
19
 
31
32
33
 
34
35
36
37
@@ -13,6 +13,7 @@
 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): @@ -30,7 +31,7 @@
    try:   self.repo = hg.repository(ui.ui(), path=root) - except hg.RepoError: + except RepoError:   return None     self.set_default_size(350, 120)
Change 1 of 2 Show Entire File hggtk/​merge.py Stacked
 
14
15
16
 
17
18
19
 
135
136
137
138
 
139
140
141
 
14
15
16
17
18
19
20
 
136
137
138
 
139
140
141
142
@@ -14,6 +14,7 @@
 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): @@ -135,7 +136,7 @@
  # 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
Change 1 of 2 Show Entire File hggtk/​recovery.py Stacked
 
18
19
20
 
21
22
23
 
127
128
129
130
 
131
132
133
 
18
19
20
21
22
23
24
 
128
129
130
 
131
132
133
134
@@ -18,6 +18,7 @@
 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 @@ -127,7 +128,7 @@
  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()
 
14
15
16
 
17
18
19
 
93
94
95
96
 
97
98
99
 
14
15
16
17
18
19
20
 
94
95
96
 
97
98
99
100
@@ -14,6 +14,7 @@
 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 @@ -93,7 +94,7 @@
  u = ui.ui()   try:   repo = hg.repository(u, path=self.root) - except hg.RepoError: + except RepoError:   return None   self.repo = repo  
Change 1 of 2 Show Entire File hggtk/​serve.py Stacked
 
24
25
26
 
27
28
29
 
122
123
124
125
 
126
127
128
 
24
25
26
27
28
29
30
 
123
124
125
 
126
127
128
129
@@ -24,6 +24,7 @@
 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 @@ -122,7 +123,7 @@
  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'
Change 1 of 2 Show Entire File hggtk/​synch.py Stacked
 
18
19
20
 
21
22
23
 
285
286
287
288
 
289
290
291
 
18
19
20
21
22
23
24
 
286
287
288
 
289
290
291
292
@@ -18,6 +18,7 @@
 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 @@ -285,7 +286,7 @@
  raise "unknown sort key '%s'" % sort   paths.sort(sortfunc)   return paths - except hg.RepoError: + except RepoError:   return None     def _btn_remotepath_clicked(self, button):
Change 1 of 2 Show Entire File hggtk/​tagadd.py Stacked
 
15
16
17
 
18
19
20
 
34
35
36
37
 
38
39
40
 
15
16
17
18
19
20
21
 
35
36
37
 
38
39
40
41
@@ -15,6 +15,7 @@
 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 *   @@ -34,7 +35,7 @@
    try:   self.repo = hg.repository(ui.ui(), path=self.root) - except hg.RepoError: + except RepoError:   pass     # build dialog
Change 1 of 2 Show Entire File hggtk/​tags.py Stacked
 
14
15
16
 
17
18
19
 
21
22
23
24
 
25
26
27
 
14
15
16
17
18
19
20
 
22
23
24
 
25
26
27
28
@@ -14,6 +14,7 @@
 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): @@ -21,7 +22,7 @@
  u = ui.ui()   try:   repo = hg.repository(u, path=root) - except hg.RepoError: + except RepoError:   return None     l = repo.tagslist()
 
10
11
12
 
13
14
15
 
29
30
31
32
 
33
34
35
 
10
11
12
13
14
15
16
 
30
31
32
 
33
34
35
36
@@ -10,6 +10,7 @@
 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 @@ -29,7 +30,7 @@
  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)
Change 1 of 3 Show Entire File hggtk/​update.py Stacked
 
13
14
15
 
16
17
18
 
30
31
32
33
 
34
35
36
 
135
136
137
138
 
139
140
141
 
13
14
15
16
17
18
19
 
31
32
33
 
34
35
36
37
 
136
137
138
 
139
140
141
142
@@ -13,6 +13,7 @@
 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   @@ -30,7 +31,7 @@
  u = ui.ui()   try:   self.repo = hg.repository(u, path=self.root) - except hg.RepoError: + except RepoError:   return None     # set dialog title @@ -135,7 +136,7 @@
  # 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