Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.7, 0.7.1, and 0.7.2

hginit: make UTF8 clean

fixes #25

Changeset ddfbe8d912e7

Parent a4a85a0715fe

by Steve Borho

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

Change 1 of 5 Show Entire File hggtk/​hginit.py Stacked
 
10
11
12
13
 
14
15
16
 
21
22
23
24
 
25
26
27
 
66
67
68
69
 
70
71
72
 
127
128
129
130
 
131
132
133
 
171
172
173
174
 
175
176
177
 
10
11
12
 
13
14
15
16
 
21
22
23
 
24
25
26
27
 
66
67
68
 
69
70
71
72
 
127
128
129
 
130
131
132
133
 
171
172
173
 
174
175
176
177
@@ -10,7 +10,7 @@
 import gtk  from dialog import error_dialog, info_dialog  from mercurial import hg, ui, util -from hglib import RepoError +from hglib import toutf, fromutf, RepoError  import shlib    class InitDialog(gtk.Window): @@ -21,7 +21,7 @@
    # set dialog title and icon   self.cwd = cwd and cwd or os.getcwd() - title = 'Hg init - %s' % (self.cwd) + title = 'Hg init - %s' % toutf(self.cwd)   self.set_title(title)   shlib.set_tortoise_icon(self, 'menucreaterepos.ico')   @@ -66,7 +66,7 @@
  lbl.set_property("width-chars", 12)   lbl.set_alignment(0, 0.5)   self._dest_input = gtk.Entry() - self._dest_input.set_text(self._dest_path) + self._dest_input.set_text(toutf(self._dest_path))   self._dest_input.set_position(-1)     self._btn_dest_browse = gtk.Button("...") @@ -127,7 +127,7 @@
    def _btn_init_clicked(self, toolbutton, data=None):   # gather input data - dest = self._dest_input.get_text() + dest = fromutf(self._dest_input.get_text())     # verify input   if dest == "": @@ -171,7 +171,7 @@
  pass     info_dialog(self, "New repository created", - "in directory %s" % os.path.abspath(dest)) + "in directory %s" % toutf(os.path.abspath(dest)))    def run(cwd='', files=[], **opts):   dialog = InitDialog(cwd, repos=files)