Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

workbench: shift-F5 refreshes only task tab

Changeset a488c65a5b34

Parent 30b5e85be646

by Johan Samyn

Changes to 7 files · Browse files at a488c65a5b34 Showing diff from parent 30b5e85be646 Diff from another changeset...

 
392
393
394
 
 
 
 
395
396
397
 
392
393
394
395
396
397
398
399
400
401
@@ -392,6 +392,10 @@
  self.userhist = self.userhist[:10]   self.refreshUserList()   + def reload(self): + # TODO + pass +   def commit(self):   repo = self.stwidget.repo   ui = repo.ui
 
220
221
222
 
 
 
 
223
224
225
 
269
270
271
272
 
273
274
275
 
220
221
222
223
224
225
226
227
228
229
 
273
274
275
 
276
277
278
279
@@ -220,6 +220,10 @@
  self.loadBegin.emit()   self.thread.start()   + def reload(self): + # TODO + pass +   def finished(self):   for col in xrange(COL_TEXT):   self.tv.resizeColumnToContents(col) @@ -269,7 +273,7 @@
  if self.fullmsg.endswith('\0'):   try:   fname, line, rev, addremove, user, text = \ - self.fullmsg.split('\0', 5) + self.fullmsg.split('\0', 5)   text = '<b>%s</b> <span>%s</span>' % (   addremove, text[:-1])   row = [fname, rev, line, user, text]
Change 1 of 1 Show Entire File tortoisehg/​hgqt/​icons/​reloadtt.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
279
280
 
@@ -0,0 +1,280 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<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:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + version="1.1" + width="128" + height="128" + viewBox="0 0 128 128" + overflow="visible" + enable-background="new 0 0 128 128" + xml:space="preserve" + id="svg3073" + inkscape:version="0.47 r22583" + sodipodi:docname="reloadtt.svg"><metadata + id="metadata3165"><rdf:RDF><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><defs + id="defs3163"><inkscape:perspective + sodipodi:type="inkscape:persp3d" + inkscape:vp_x="0 : 64 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_z="128 : 64 : 1" + inkscape:persp3d-origin="64 : 42.666667 : 1" + id="perspective3167" /></defs><sodipodi:namedview + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1" + objecttolerance="10" + gridtolerance="10" + guidetolerance="10" + inkscape:pageopacity="0" + inkscape:pageshadow="2" + inkscape:window-width="1600" + inkscape:window-height="839" + id="namedview3161" + showgrid="false" + inkscape:zoom="1.84375" + inkscape:cx="-8.1355932" + inkscape:cy="64" + inkscape:window-x="-9" + inkscape:window-y="-9" + inkscape:window-maximized="1" + inkscape:current-layer="svg3073" /> + <path + opacity="0.2" + d="M76,14c-0.553,0-1,0.448-1,1v34c0,0.404,0.244,0.769,0.617,0.924c0.374,0.155,0.804,0.069,1.09-0.217 c0,0,8.8-8.8,9.912-9.912C95.622,46.409,101,56.872,101,68c0,19.299-15.602,35-34.901,35c-0.553,0-1,0.447-1,1v18 c0,0.553,0.447,1,1,1C96.426,123,121,98.327,121,68c0-16.275-7.531-32.033-20.14-42.446c1.293-1.293,9.847-9.847,9.847-9.847 C110.898,15.516,111,15.26,111,15c0-0.129-0.025-0.259-0.076-0.383C110.77,14.244,110.404,14,110,14H76z" + id="path3075" /> + <path + opacity="0.2" + d="M54,114c0.553,0,1-0.447,1-1V79c0-0.404-0.244-0.77-0.617-0.924c-0.374-0.154-0.804-0.068-1.09,0.217 c0,0-8.8,8.8-9.912,9.912C34.378,81.591,29,71.129,29,60c0-19.299,15.602-35,34.901-35c0.553,0,1-0.448,1-1V6c0-0.552-0.447-1-1-1 C33.574,5,9,29.673,9,60c0,16.275,7.531,32.033,20.14,42.446c-1.293,1.293-9.847,9.847-9.847,9.847 C19.102,112.484,19,112.74,19,113c0,0.129,0.025,0.259,0.076,0.383C19.23,113.756,19.596,114,20,114H54z" + id="path3077" /> + <path + opacity="0.2" + d="M76,13c-1.103,0-2,0.897-2,2v34c0,0.812,0.484,1.537,1.234,1.848c0.75,0.311,1.605,0.14,2.18-0.433 c0,0,7.096-7.095,9.27-9.269C95.02,47.597,100,57.554,100,68c0,18.748-15.208,34-33.901,34c-1.103,0-2,0.896-2,2v18 c0,1.104,0.897,2,2,2C96.923,124,122,98.879,122,68c0-16.096-7.367-31.867-19.698-42.473c1.257-1.257,9.112-9.113,9.112-9.113 C111.792,16.036,112,15.534,112,15l-0.15-0.762C111.538,13.485,110.813,13,110,13H76z" + id="path3079" /> + <linearGradient + id="XMLID_9_" + gradientUnits="userSpaceOnUse" + x1="65.0986" + y1="67.5" + x2="121" + y2="67.5"> + <stop + offset="0" + style="stop-color:#295AA6" + id="stop3082" /> + <stop + offset="0.3319" + style="stop-color:#27569F" + id="stop3084" /> + <stop + offset="0.8192" + style="stop-color:#224C8B" + id="stop3086" /> + <stop + offset="1" + style="stop-color:#1F4782" + id="stop3088" /> + </linearGradient> + <path + fill="url(#XMLID_9_)" + d="M76,13c-0.553,0-1,0.448-1,1v34c0,0.404,0.244,0.769,0.617,0.924 c0.374,0.155,0.804,0.069,1.09-0.217c0,0,8.8-8.8,9.912-9.912C95.622,45.409,101,55.872,101,67c0,19.299-15.602,35-34.901,35 c-0.553,0-1,0.447-1,1v18c0,0.553,0.447,1,1,1C96.426,122,121,97.327,121,67c0-16.275-7.531-32.033-20.14-42.446 c1.293-1.293,9.847-9.847,9.847-9.847C110.898,14.516,111,14.26,111,14c0-0.129-0.025-0.259-0.076-0.383 C110.77,13.244,110.404,13,110,13H76z" + id="path3090" /> + <linearGradient + id="XMLID_10_" + gradientUnits="userSpaceOnUse" + x1="98.1133" + y1="117.6191" + x2="74.4431" + y2="-4.7358"> + <stop + offset="0" + style="stop-color:#3371CF" + id="stop3093" /> + <stop + offset="0.5072" + style="stop-color:#2A5FAE" + id="stop3095" /> + <stop + offset="1" + style="stop-color:#214B8A" + id="stop3097" /> + </linearGradient> + <path + fill="url(#XMLID_10_)" + d="M99.405,24.595L110,14H76v34l10.541-10.541C96.077,44.125,102,55.16,102,67 c0,19.851-16.051,36-35.901,36v18C95.875,121,120,96.775,120,67C120,50.333,112.188,34.715,99.405,24.595z" + id="path3099" /> + <path + fill="#5487D6" + d="M119.986,66.536C119.697,96.064,95.695,120,66.099,120v1C95.875,121,120,96.775,120,67 C120,66.845,119.988,66.691,119.986,66.536z" + id="path3101" /> + <linearGradient + id="XMLID_11_" + gradientUnits="userSpaceOnUse" + x1="78.252" + y1="10.0327" + x2="105.918" + y2="49.3657"> + <stop + offset="0" + style="stop-color:#839DC4" + id="stop3104" /> + <stop + offset="1" + style="stop-color:#6789BA" + id="stop3106" /> + </linearGradient> + <path + fill="url(#XMLID_11_)" + d="M112.608,39.821c-3.396-5.818-7.866-11.001-13.203-15.227L110,14H76v34l10.541-10.541 c2.815,1.968,4.681,3.352,6.807,5.991L112.608,39.821z" + id="path3108" /> + <linearGradient + id="XMLID_12_" + gradientUnits="userSpaceOnUse" + x1="-6.25" + y1="26.9766" + x2="116.7498" + y2="26.9766"> + <stop + offset="0" + style="stop-color:#90A5C4" + id="stop3111" /> + <stop + offset="0.4719" + style="stop-color:#D0E0FB" + id="stop3113" /> + <stop + offset="0.8119" + style="stop-color:#ACBAD5" + id="stop3115" /> + <stop + offset="1" + style="stop-color:#9DAAC5" + id="stop3117" /> + </linearGradient> + <path + fill="url(#XMLID_12_)" + d="M99.951,25.048l-0.546,0.546c5.067,4.012,9.342,8.896,12.669,14.358l0.534-0.132 C109.33,34.206,105.044,29.19,99.951,25.048z M110,14H76v1h33L110,14z" + id="path3119" /> + <path + opacity="0.2" + d="M8,60c0,16.096,7.367,31.867,19.698,42.473c-1.257,1.258-9.112,9.113-9.112,9.113 C18.208,111.964,18,112.466,18,113l0.15,0.762C18.462,114.516,19.188,115,20,115h34c1.103,0,2-0.896,2-2V79 c0-0.811-0.484-1.537-1.234-1.848s-1.605-0.141-2.18,0.434c0,0-7.096,7.095-9.27,9.269C34.98,80.402,30,70.445,30,60 c0-18.748,15.208-34,33.901-34c1.103,0,2-0.897,2-2V6c0-1.103-0.897-2-2-2C33.077,4,8,29.122,8,60z" + id="path3121" /> + <linearGradient + id="XMLID_13_" + gradientUnits="userSpaceOnUse" + x1="33.1445" + y1="0.1035" + x2="46.1445" + y2="114.1035"> + <stop + offset="0" + style="stop-color:#295AA6" + id="stop3124" /> + <stop + offset="0.3319" + style="stop-color:#27569F" + id="stop3126" /> + <stop + offset="0.8192" + style="stop-color:#224C8B" + id="stop3128" /> + <stop + offset="1" + style="stop-color:#1F4782" + id="stop3130" /> + </linearGradient> + <path + fill="url(#XMLID_13_)" + d="M54,113c0.553,0,1-0.447,1-1V78c0-0.404-0.244-0.77-0.617-0.924 c-0.374-0.154-0.804-0.068-1.09,0.217c0,0-8.8,8.8-9.912,9.912C34.378,80.591,29,70.129,29,59c0-19.299,15.602-35,34.901-35 c0.553,0,1-0.448,1-1V5c0-0.552-0.447-1-1-1C33.574,4,9,28.673,9,59c0,16.275,7.531,32.033,20.14,42.446 c-1.293,1.293-9.847,9.847-9.847,9.847C19.102,111.484,19,111.74,19,112c0,0.129,0.025,0.259,0.076,0.383 C19.23,112.756,19.596,113,20,113H54z" + id="path3132" /> + <linearGradient + id="XMLID_14_" + gradientUnits="userSpaceOnUse" + x1="36.9512" + y1="114" + x2="36.9512" + y2="6.7496"> + <stop + offset="0" + style="stop-color:#3371CF" + id="stop3135" /> + <stop + offset="0.5072" + style="stop-color:#2A5FAE" + id="stop3137" /> + <stop + offset="1" + style="stop-color:#214B8A" + id="stop3139" /> + </linearGradient> + <path + fill="url(#XMLID_14_)" + d="M30.595,101.405L20,112h34V78L43.459,88.541C33.923,81.875,28,70.84,28,59 c0-19.851,16.051-36,35.901-36V5C34.125,5,10,29.224,10,59C10,75.666,17.812,91.285,30.595,101.405z" + id="path3141" /> + <path + fill="#5081CC" + d="M30.051,100.949l0.544-0.544c-12.664-10.026-20.438-25.45-20.581-41.941C10.012,58.644,10,58.82,10,59 C10,75.424,17.597,90.819,30.051,100.949z M20,112h34v-1H21L20,112z" + id="path3143" /> + <linearGradient + id="XMLID_15_" + gradientUnits="userSpaceOnUse" + x1="53.4395" + y1="2.8052" + x2="12.9391" + y2="80.3058"> + <stop + offset="0" + style="stop-color:#839DC4" + id="stop3146" /> + <stop + offset="1" + style="stop-color:#6789BA" + id="stop3148" /> + </linearGradient> + <path + fill="url(#XMLID_15_)" + d="M12.238,74.308C10.775,69.402,10,64.253,10,59C10,29.224,34.125,5,63.901,5v18 C44.051,23,28,39.149,28,59c0,2.844,0.342,5.643,0.993,8.344L12.238,74.308z" + id="path3150" /> + <linearGradient + id="XMLID_16_" + gradientUnits="userSpaceOnUse" + x1="81.5479" + y1="-17.3154" + x2="-3.4521" + y2="59.4346"> + <stop + offset="0" + style="stop-color:#D0E0FB" + id="stop3153" /> + <stop + offset="0.6438" + style="stop-color:#ACBAD5" + id="stop3155" /> + <stop + offset="1" + style="stop-color:#9DAAC5" + id="stop3157" /> + </linearGradient> + <path + fill="url(#XMLID_16_)" + d="M10,59c0,0.193,0.009,0.385,0.011,0.579C10.238,29.997,34.267,6,63.901,6V5 C34.125,5,10,29.224,10,59z" + id="path3159" /> +<text + xml:space="preserve" + style="font-size:72px;font-style:normal;font-weight:normal;text-align:justify;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial" + x="36.881359" + y="96.542374" + id="text3229"><tspan + sodipodi:role="line" + id="tspan3231" + x="36.881359" + y="96.542374" + style="font-size:90px;font-weight:bold;text-align:justify;text-anchor:start">T</tspan></text> +</svg> \ No newline at end of file
 
192
193
194
 
 
 
 
195
196
197
 
192
193
194
195
196
197
198
199
200
201
@@ -192,6 +192,10 @@
  self._treeview.setModel(self._treemodel)   self._treeview.selectionModel().currentChanged.connect(self._fileselected)   + def reload(self): + # TODO + pass +   @property   def rev(self):   """Return current revision"""
 
543
544
545
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
546
547
548
 
598
599
600
601
 
602
603
604
 
610
611
612
613
 
 
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
 
613
614
615
 
616
617
618
619
 
625
626
627
 
628
@@ -543,6 +543,21 @@
  cw.stwidget.refreshWctx()   self.revDetailsWidget.reload(rev)   + def reloadTaskTab(self): + tti = self.taskTabsWidget.currentIndex() + if tti == self.logTabIndex: + ttw = self.revDetailsWidget + elif tti == self.commitTabIndex: + ttw = self.commitDemand.get() + elif tti == self.manifestTabIndex: + ttw = self.manifestDemand.get() + elif tti == self.syncTabIndex: + ttw = self.syncDemand.get() + elif tti == self.grepTabIndex: + ttw = self.grepDemand.get() + if ttw: + ttw.reload() +   def refresh(self):   'Refresh the repo model view, clear cached data'   self.repo.thginvalidate() @@ -598,7 +613,7 @@
  cw.storeConfigs(s)   return True   - def runCommand(self, title, cmdline): + def runCommand(self, title, cmdline):   if self.runner:   InfoMsgBox(_('Unable to start'),   _('Previous command is still running')) @@ -610,4 +625,4 @@
  self.setScanForRepoChanges(saved)   self.runner = None   self.runner.commandFinished.connect(finished) - self.runner.run(cmdline) + self.runner.run(cmdline)
 
147
148
149
 
 
 
 
 
 
150
151
152
 
222
223
224
 
225
226
227
 
246
247
248
 
249
250
251
 
400
401
402
 
403
404
405
 
421
422
423
 
424
425
426
 
522
523
524
 
 
 
 
 
525
526
527
 
147
148
149
150
151
152
153
154
155
156
157
158
 
228
229
230
231
232
233
234
 
253
254
255
256
257
258
259
 
408
409
410
411
412
413
414
 
430
431
432
433
434
435
436
 
532
533
534
535
536
537
538
539
540
541
542
@@ -147,6 +147,12 @@
    self.actionRefresh = a = QAction(_("&Refresh"), self)   a.setShortcut(QKeySequence.Refresh) + a.setToolTip(_('Refresh all for current repository')) + + self.actionRefreshTaskTab = a = QAction(_("&Refresh Task Tab"), self) + b = QKeySequence.keyBindings(QKeySequence.Refresh) + a.setShortcut(QKeySequence.fromString(u'Shift+' + b[0].toString())) + a.setToolTip(_('Refresh only the current task tab'))     self.actionFind = a = QAction(_('Find'), self)   a.setIcon(geticon('find')) @@ -222,6 +228,7 @@
  m.addAction(self.actionSelectColumns)   m.addSeparator()   m.addAction(self.actionRefresh) + m.addAction(self.actionRefreshTaskTab)     self.menuRepository = m = QMenu(_("&Repository"), self.menubar)   m.addAction(self.actionServe) @@ -246,6 +253,7 @@
  tb.setEnabled(True)   tb.setObjectName("toolBar_edit")   tb.addAction(self.actionRefresh) + tb.addAction(self.actionRefreshTaskTab)   tb.addSeparator()   tb.addAction(self.actionBack)   tb.addAction(self.actionForward) @@ -400,6 +408,7 @@
  # main window actions (from .ui file)   self.actionFind.triggered.connect(self.find)   self.actionRefresh.triggered.connect(self.reload) + self.actionRefreshTaskTab.triggered.connect(self.reloadTaskTab)   self.actionAbout.triggered.connect(self.on_about)   self.actionQuit.triggered.connect(self.close)   self.actionBack.triggered.connect(self.back) @@ -421,6 +430,7 @@
    self.actionQuit.setIcon(geticon('quit'))   self.actionRefresh.setIcon(geticon('reload')) + self.actionRefreshTaskTab.setIcon(geticon('reloadtt'))     self.actionHelp.setShortcut(QKeySequence.HelpContents)   self.actionHelp.setIcon(geticon('help')) @@ -522,6 +532,11 @@
  w.reload()   self.setupBranchCombo()   + def reloadTaskTab(self, root): + rw = self.repoTabsWidget.currentWidget() + if rw: + rw.reloadTaskTab() +   def goto(self, root, rev):   for rw in self._findrepowidget(root):   rw.goto(rev)
 
36
37
38
 
39
40
 
36
37
38
39
40
41
@@ -36,5 +36,6 @@
  <file>icons/rename.svg</file>   <file>icons/commit.svg</file>   <file>icons/fonts.svg</file> + <file>icons/reloadtt.svg</file>   </qresource>  </RCC>