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

icons: Add icon for "shelve" dialog

Changeset 6bf264b49e18

Parent 8d324a7b1d09

by Peer Sommerlund

Changes to 4 files · Browse files at 6bf264b49e18 Showing diff from parent 8d324a7b1d09 Diff from another changeset...

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
 
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
 
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
 #  # thgshelve.py - commit dialog for TortoiseHg  #  # Copyright 2007 Brad Schick, brad at gmail . com  # Copyright (C) 2007 TK Soh <teekaysoh@gmail.com>  # Copyright (C) 2009 Steve Borho <steve@borho.org>  #    import os  import pygtk  pygtk.require('2.0')  import gtk  import cStringIO    from mercurial.i18n import _  from mercurial import ui, hg  from shlib import shell_notify  from gdialog import *  from status import *  from hgcmd import CmdDialog  from hglib import fromutf  import hgshelve    class GShelve(GStatus):   """GTK+ based dialog for displaying repository status and shelving changes.     Also provides related operations like add, delete, remove, revert, refresh,   ignore, diff, and edit.   """     ### Overrides of base class methods ###     def init(self):   GStatus.init(self)     def parse_opts(self):   GStatus.parse_opts(self)   if not self.test_opt('rev'):   self.opts['rev'] = ''     def get_title(self):   root = os.path.basename(self.repo.root)   return ' '.join([root, 'shelve'])     def get_icon(self): - return 'menucommit.ico' + return 'shelve.ico'     def auto_check(self):   if self.test_opt('check'):   for entry in self.filemodel :   if entry[FM_STATUS] in 'MAR':   entry[FM_CHECKED] = True   self._update_check_count()       def save_settings(self):   settings = GStatus.save_settings(self)   settings['gshelve'] = self._vpaned.get_position()   return settings       def load_settings(self, settings):   GStatus.load_settings(self, settings)   if settings:   self._setting_vpos = settings['gshelve']   else:   self._setting_vpos = -1       def get_tbbuttons(self):   tbbuttons = GStatus.get_tbbuttons(self)   tbbuttons.insert(2, gtk.SeparatorToolItem())   self.shelve_btn = self.make_toolbutton(gtk.STOCK_FILE, 'Shelve',   self._shelve_clicked, tip='set aside selected changes')   self.unshelve_btn = self.make_toolbutton(gtk.STOCK_EDIT, 'Unshelve',   self._unshelve_clicked, tip='restore shelved changes')   tbbuttons.insert(2, self.unshelve_btn)   tbbuttons.insert(2, self.shelve_btn)   return tbbuttons     def get_body(self):   status_body = GStatus.get_body(self)   vbox = gtk.VBox() # For named shelf collection   self._vpaned = gtk.VPaned()   self._vpaned.add1(vbox)   self._vpaned.add2(status_body)   self._vpaned.set_position(self._setting_vpos)   self._activate_shelve_buttons(True)     #self.selectlabel.set_text(   # _('toggle change hunks to leave them in your working directory'))   return self._vpaned       def get_menu_info(self):   """   Returns menu info in this order:   merge, addrem, unknown, clean, ignored, deleted   """   merge, addrem, unknown, clean, ignored, deleted, unresolved, resolved \   = GStatus.get_menu_info(self)   return (merge + (('_shelve', self._shelve_file),),   addrem + (('_shelve', self._shelve_file),),   unknown + (('_shelve', self._shelve_file),),   clean,   ignored,   deleted + (('_shelve', self._shelve_file),),   unresolved,   resolved,   )       def should_live(self, widget=None, event=None):   return False       def reload_status(self):   if not self._ready: return False   success = GStatus.reload_status(self)   return success     ### End of overridable methods ###     def _activate_shelve_buttons(self, status):   if status:   self.shelve_btn.set_sensitive(True)   self.unshelve_btn.set_sensitive(self._has_shelve_file())   else:   self.shelve_btn.set_sensitive(False)   self.unshelve_btn.set_sensitive(False)     def _shelve_selected(self, file=None):   # get list of hunks that have not been rejected   chunks = self._shelve_chunks   hlist = [x[DM_CHUNK_ID] for x in self.diff_model if not x[DM_REJECTED]]   if file:   hlist = [cid for cid in hlist if chunks[cid].filename() == file]   if not hlist:   Prompt('Shelve', 'Please select diff chunks to shelve',   self).run()   return     doforce = False   doappend = False   if self._has_shelve_file():   from gtklib import MessageDialog   dialog = MessageDialog(flags=gtk.DIALOG_MODAL)   dialog.set_title('Shelve')   dialog.set_markup('<b>Shelve file exists!</b>')   dialog.add_buttons('Overwrite', 1, 'Append', 2, 'Cancel', -1)   dialog.set_transient_for(self)   rval = dialog.run()   dialog.destroy()   if rval == -1:   return   if rval == 1:   doforce = True   if rval == 2:   doappend = True     # capture the selected hunks to shelve   fc = []   sc = []   for n, c in enumerate(chunks):   if isinstance(c, hgshelve.header):   if len(fc) > 1 or (len(fc) == 1 and fc[0].binary()):   sc += fc   fc = [c]   elif n in hlist:   fc.append(c)   if len(fc) > 1 or (len(fc) == 1 and fc[0].binary()):   sc += fc     def filter_patch(ui, chunks):   return sc     # shelve them!   self.ui.interactive = True # hgshelve only works 'interactively'   opts = {'addremove': None, 'include': [], 'force': doforce,   'append': doappend, 'exclude': []}   hgshelve.filterpatch = filter_patch   hgshelve.shelve(self.ui, self.repo, **opts)   self.reload_status()     def _unshelve(self):   opts = {'addremove': None, 'include': [], 'force': None,   'append': None, 'exclude': [], 'inspect': None}   try:   hgshelve.unshelve(self.ui, self.repo, **opts)   self.reload_status()   except:   pass     def _shelve_clicked(self, toolbutton, data=None):   self._shelve_selected()   self._activate_shelve_buttons(True)     def _unshelve_clicked(self, toolbutton, data=None):   self._unshelve()   self._activate_shelve_buttons(True)     def _shelve_file(self, stat, file):   self._shelve_selected(file)   self._activate_shelve_buttons(True)   return True      def launch(root='', files=[], cwd='', main=True):   u = ui.ui()   u.updateopts(debug=False, traceback=False)   repo = hg.repository(u, path=root)     cmdoptions = {   'user':'', 'date':'',   'modified':True, 'added':True, 'removed':True, 'deleted':True,   'unknown':False, 'ignored':False,   'exclude':[], 'include':[],   'check': True, 'git':False, 'logfile':'', 'addremove':False,   }     dialog = GShelve(u, repo, cwd, files, cmdoptions, main)   dialog.display()   return dialog    def run(root='', files=[], cwd='', **opts):   # If no files or directories were selected, take current dir   # TODO: Not clear if this is best; user may expect repo wide   if not files and cwd:   files = [cwd]   if launch(root, files, cwd, True):   gtk.gdk.threads_init()   gtk.gdk.threads_enter()   gtk.main()   gtk.gdk.threads_leave()    if __name__ == "__main__":   import sys   from hglib import rootpath     opts = {}   opts['cwd'] = len(sys.argv) > 1 and sys.argv[1] or os.getcwd()   opts['root'] = rootpath(opts['cwd'])   run(**opts)
Added image
Change 1 of 1 Show Entire File icons/​tortoise/​svg/​shelve.svg Stacked
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
@@ -0,0 +1,278 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="32" + height="32" + id="svg2" + sodipodi:version="0.32" + inkscape:version="0.46" + version="1.0" + sodipodi:docname="shelve.svg" + inkscape:output_extension="org.inkscape.output.svg.inkscape" + inkscape:export-filename="C:\src\thg\new-icons\icons\tortoise\commit-32.png" + inkscape:export-xdpi="90" + inkscape:export-ydpi="90" + sodipodi:docbase="E:\src\thg\thg-icons\icons\tortoise" + style="display:inline"> + <defs + id="defs4"> + <inkscape:perspective + sodipodi:type="inkscape:persp3d" + inkscape:vp_x="0 : 16 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_z="32 : 16 : 1" + inkscape:persp3d-origin="16 : 10.666667 : 1" + id="perspective2425" /> + <linearGradient + id="linearGradient3258"> + <stop + style="stop-color:#000000;stop-opacity:1;" + offset="0" + id="stop3262" /> + <stop + id="stop3264" + offset="1" + style="stop-color:#000000;stop-opacity:0;" /> + </linearGradient> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3258" + id="linearGradient3277" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.9294606,0,0,0.9470405,124.13397,334.79144)" + x1="18.748869" + y1="13.0625" + x2="14.660361" + y2="13.046666" /> + <linearGradient + id="linearGradient3244"> + <stop + style="stop-color:#fce94f;stop-opacity:1;" + offset="0" + id="stop3246" /> + <stop + id="stop3252" + offset="0.5" + style="stop-color:#fffce0;stop-opacity:1;" /> + <stop + style="stop-color:#fceb50;stop-opacity:1;" + offset="1" + id="stop3248" /> + </linearGradient> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3244" + id="linearGradient3280" + gradientUnits="userSpaceOnUse" + x1="10" + y1="13.0625" + x2="4.4375" + y2="13" + gradientTransform="translate(123.42857,334.07648)" /> + <linearGradient + inkscape:collect="always" + id="linearGradient5209"> + <stop + style="stop-color:#babdb6;stop-opacity:1;" + offset="0" + id="stop5211" /> + <stop + style="stop-color:#babdb6;stop-opacity:0;" + offset="1" + id="stop5213" /> + </linearGradient> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient5209" + id="linearGradient5217" + x1="11.5" + y1="13" + x2="11.5" + y2="20" + gradientUnits="userSpaceOnUse" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3258" + id="linearGradient2796" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.7244979,0,0,0.7360207,66.759522,97.151414)" + x1="18.748869" + y1="13.0625" + x2="14.660361" + y2="13.046666" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3244" + id="linearGradient2799" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.7771798,0,0,0.7771798,66.216582,96.595762)" + x1="10" + y1="13.0625" + x2="4.4375" + y2="13" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3244" + id="linearGradient2806" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.7771798,0,0,0.7771798,66.216582,96.595762)" + x1="10" + y1="13.0625" + x2="4.4375" + y2="13" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3258" + id="linearGradient2808" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.7244979,0,0,0.7360207,66.759522,97.151414)" + x1="18.748869" + y1="13.0625" + x2="14.660361" + y2="13.046666" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3244" + id="linearGradient2657" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.7771798,0,0,0.7771798,66.216582,96.595762)" + x1="10" + y1="13.0625" + x2="4.4375" + y2="13" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3258" + id="linearGradient2659" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.7244979,0,0,0.7360207,66.759522,97.151414)" + x1="18.748869" + y1="13.0625" + x2="14.660361" + y2="13.046666" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient5209" + id="linearGradient2661" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.5555556,0,0,0.625,47.976189,108.12111)" + x1="11.5" + y1="13" + x2="11.5" + y2="20" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient5209" + id="linearGradient2671" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.5555556,0,0,0.625,47.976189,108.12111)" + x1="11.5" + y1="13" + x2="11.5" + y2="20" /> + </defs> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + gridtolerance="3" + guidetolerance="10" + objecttolerance="10" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="8" + inkscape:cx="2.164109" + inkscape:cy="7.4001473" + inkscape:document-units="px" + inkscape:current-layer="layer1" + showgrid="true" + inkscape:snap-bbox="true" + inkscape:snap-nodes="true" + inkscape:window-width="1024" + inkscape:window-height="719" + inkscape:window-x="100" + inkscape:window-y="132" + inkscape:snap-global="true" + showguides="true" + inkscape:guide-bbox="true" + inkscape:grid-bbox="false" + inkscape:bbox-paths="false"> + <inkscape:grid + type="xygrid" + id="grid2898" + visible="true" + enabled="true" + empspacing="2" + dotted="false" + spacingx="0.5px" + spacingy="0.5px" /> + </sodipodi:namedview> + <metadata + id="metadata7"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title>Status</dc:title> + <dc:date>2008-04-16</dc:date> + <dc:creator> + <cc:Agent> + <dc:title>Peer Sommerlund</dc:title> + </cc:Agent> + </dc:creator> + <dc:description>Icon for TortoiseHg dialog &quot;File Status&quot;</dc:description> + </cc:Work> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Vector" + inkscape:groupmode="layer" + id="layer1" + transform="translate(-49.142857,-92.933609)" + style="display:inline"> + <g + id="g2665" + transform="matrix(2.1249993,0,0,2.1,-55.470017,-143.33011)"> + <g + id="g2637"> + <path + style="fill:#eeeeec;stroke:#204a87;stroke-width:0.50375551;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;display:inline" + d="M 50.894733,114.18549 C 52.5703,114.18549 54.245866,114.18549 55.921432,114.18549 C 56.744613,115.01293 57.567795,115.84036 58.39098,116.66779 C 58.39098,119.00577 58.39098,121.34375 58.39098,123.68173 C 55.892231,123.68173 53.393482,123.68173 50.894733,123.68173 C 50.894733,120.51632 50.894732,117.35089 50.894733,114.18549 z" + id="path2816" /> + <path + style="fill:url(#linearGradient2671);fill-opacity:1;stroke:none;stroke-width:1.04799998;stroke-linecap:butt;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="M 52.142857,115.93361 C 53.809523,115.93361 55.47619,115.93361 57.142857,115.93361 C 57.142857,117.60028 57.142857,119.26694 57.142857,120.93361 C 55.47619,120.93361 53.809524,120.93361 52.142857,120.93361 C 52.142857,119.26694 52.142858,117.60028 52.142857,115.93361 z" + id="rect2818" /> + </g> + <path + id="path2820" + d="M 55.906189,114.19694 C 56.730632,115.02139 57.55508,115.84583 58.379524,116.67028 C 57.555079,116.67028 56.730634,116.67028 55.906189,116.67028 C 55.906189,115.84583 55.906189,115.02139 55.906189,114.19694 z" + style="fill:#d3d7cf;fill-opacity:1;stroke:#204a87;stroke-width:0.52666515;stroke-linecap:butt;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> + </g> + <path + sodipodi:type="inkscape:offset" + inkscape:radius="1.1943898" + inkscape:original="M 62.8125 96.21875 L 62.8125 97.6875 L 70.78125 97.6875 L 62.625 107.78125 L 62.625 109.09375 L 73.15625 109.09375 L 73.15625 107.625 L 64.8125 107.625 L 72.9375 97.5625 L 72.9375 96.21875 L 62.8125 96.21875 z " + style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans" + id="path2680" + d="M 62.6875,95.03125 C 62.082488,95.098524 61.624843,95.610009 61.625,96.21875 L 61.625,97.6875 C 61.628828,98.341746 62.158254,98.871172 62.8125,98.875 L 68.28125,98.875 L 61.6875,107.03125 C 61.521455,107.24563 61.43329,107.51012 61.4375,107.78125 L 61.4375,109.09375 C 61.441328,109.748 61.970754,110.27742 62.625,110.28125 L 73.15625,110.28125 C 73.810496,110.27742 74.339922,109.748 74.34375,109.09375 L 74.34375,107.625 C 74.339922,106.97075 73.810496,106.44133 73.15625,106.4375 L 67.3125,106.4375 L 73.875,98.3125 C 74.041045,98.098123 74.12921,97.833629 74.125,97.5625 L 74.125,96.21875 C 74.121172,95.564504 73.591746,95.035078 72.9375,95.03125 L 62.8125,95.03125 C 62.770862,95.029068 62.729138,95.029068 62.6875,95.03125 z" + transform="matrix(1,0,0,1.0132275,1.924107,9.8585116)" /> + </g> +</svg>
 
340
341
342
343
 
344
345
346
 
340
341
342
 
343
344
345
346
@@ -340,7 +340,7 @@
  self._status, icon="menushowchanged.ico"))   result.append(TortoiseMenu(_("Shelve Changes"),   _("Shelve or unshelve repository changes"), - self._shelve, icon="general.ico")) # needs ico + self._shelve, icon="shelve.ico"))     # Visual Diff (any extdiff command)   has_vdiff = repo.ui.config('tortoisehg', 'vdiff', '') != ''