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

New icons for mq dialog

Changeset 932c1134b107

Parent 961885a6e4ad

by patrice@lacouture.nom.fr

Changes to 5 files · Browse files at 932c1134b107 Showing diff from parent 961885a6e4ad Diff from another changeset...

Change 1 of 1 Show Entire File tortoisehg/​hgqt/​icons/​qpopall.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
@@ -0,0 +1,188 @@
+<?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" + id="svg2" + viewBox="0 0 32 32" + height="100%" + width="100%" + version="1.0" + inkscape:version="0.47 r22583" + sodipodi:docname="qpopall.svg"> + <sodipodi:namedview + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1" + objecttolerance="10" + gridtolerance="10" + guidetolerance="10" + inkscape:pageopacity="0" + inkscape:pageshadow="2" + inkscape:window-width="1407" + inkscape:window-height="875" + id="namedview17" + showgrid="false" + inkscape:zoom="7.375" + inkscape:cx="-9.4237288" + inkscape:cy="16" + inkscape:window-x="0" + inkscape:window-y="0" + inkscape:window-maximized="1" + inkscape:current-layer="svg2" /> + <title + id="title3197">QPop</title> + <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="perspective19" /> + <linearGradient + id="linearGradient3719" + y2="8.9479" + gradientUnits="userSpaceOnUse" + y1="18.251" + x2="19.394" + x1="16.874"> + <stop + id="stop3711" + stop-color="#C00" + offset="0" /> + <stop + id="stop3713" + stop-color="#ff0b0b" + offset="1" /> + </linearGradient> + <inkscape:perspective + id="perspective5043" + inkscape:persp3d-origin="0.5 : 0.33333333 : 1" + inkscape:vp_z="1 : 0.5 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_x="0 : 0.5 : 1" + sodipodi:type="inkscape:persp3d" /> + <inkscape:perspective + id="perspective5068" + inkscape:persp3d-origin="0.5 : 0.33333333 : 1" + inkscape:vp_z="1 : 0.5 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_x="0 : 0.5 : 1" + sodipodi:type="inkscape:persp3d" /> + <inkscape:perspective + id="perspective2834" + inkscape:persp3d-origin="0.5 : 0.33333333 : 1" + inkscape:vp_z="1 : 0.5 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_x="0 : 0.5 : 1" + sodipodi:type="inkscape:persp3d" /> + <linearGradient + id="linearGradient3719-5" + y2="8.9478998" + gradientUnits="userSpaceOnUse" + y1="18.250999" + x2="19.393999" + x1="16.874001"> + <stop + id="stop3711-6" + stop-color="#C00" + offset="0" /> + <stop + id="stop3713-1" + stop-color="#ff0b0b" + offset="1" /> + </linearGradient> + </defs> + <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>QPop</dc:title> + <dc:date>2010-10-17</dc:date> + <dc:creator> + <cc:Agent> + <dc:title>Peer Sommerlund</dc:title> + </cc:Agent> + </dc:creator> + <dc:description>QPop icon for TortoiseHg</dc:description> + <cc:license + rdf:resource="http://creativecommons.org/licenses/by-sa/3.0/" /> + </cc:Work> + <cc:License + rdf:about="http://creativecommons.org/licenses/by-sa/3.0/"> + <cc:permits + rdf:resource="http://creativecommons.org/ns#Reproduction" /> + <cc:permits + rdf:resource="http://creativecommons.org/ns#Distribution" /> + <cc:requires + rdf:resource="http://creativecommons.org/ns#Notice" /> + <cc:requires + rdf:resource="http://creativecommons.org/ns#Attribution" /> + <cc:permits + rdf:resource="http://creativecommons.org/ns#DerivativeWorks" /> + <cc:requires + rdf:resource="http://creativecommons.org/ns#ShareAlike" /> + </cc:License> + </rdf:RDF> + </metadata> + <g + id="arrow-up-1" + transform="translate(2.1079415,8.2284135)" + style="stroke-linecap:butt;stroke-linejoin:miter"> + <path + id="path3696-5" + d="m 15.291,13.51 -3,-0.5 6,-2.5 1.5411,4.4914 -2.5,-1 c -2,2.5 -0.50416,6.4894 -0.50416,6.4894 l -2.7448,-0.06341 c 0.09967,-3.4834 -0.10636,-4.8031 1.2079,-6.9174 z" + style="fill:url(#linearGradient3719-5);stroke:#a40000;stroke-width:1" /> + <path + id="arrow-up-inner-shadow-9" + d="m 15.676,13.332 c 0,0 -2.4525,-0.4167 -2.4525,-0.4167 l 4.9119,-2.0662 1.2771,3.7121 -2.1767,-0.86422 c -2.1471,2.518 -0.73246,6.5184 -0.72698,6.5386 0,0 -2.1523,-0.05295 -2.1523,-0.05295 0.0099,-3.4997 -0.06586,-4.7514 1.3195,-6.8507 z" + style="fill:none;stroke:#ff2626;stroke-width:0.5" /> + </g> + <g + id="arrow-up" + transform="translate(-6.1016949,8)" + style="stroke-linecap:butt;stroke-linejoin:miter"> + <path + id="path3696" + d="m 15.291,13.51 -3,-0.5 6,-2.5 1.5411,4.4914 -2.5,-1 c -2,2.5 -0.50416,6.4894 -0.50416,6.4894 l -2.7448,-0.06341 c 0.09967,-3.4834 -0.10636,-4.8031 1.2079,-6.9174 z" + style="fill:url(#linearGradient3719);stroke:#a40000;stroke-width:1" /> + <path + id="arrow-up-inner-shadow" + d="m 15.676,13.332 c 0,0 -2.4525,-0.4167 -2.4525,-0.4167 l 4.9119,-2.0662 1.2771,3.7121 -2.1767,-0.86422 c -2.1471,2.518 -0.73246,6.5184 -0.72698,6.5386 0,0 -2.1523,-0.05295 -2.1523,-0.05295 0.0099,-3.4997 -0.06586,-4.7514 1.3195,-6.8507 z" + style="fill:none;stroke:#ff2626;stroke-width:0.5" /> + </g> + <g + transform="translate(-1.7521271,8.2675406)" + id="patch-removed-2-5"> + <path + style="opacity:0.75;fill:#729fcf;stroke:#2e3436;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter" + id="path4858-1-6" + d="m 6.1642,5.6688 c 0,0 2.4747,1.8011 4.1564,2.5803 2.344,1.0865 10.154,2.1939 14.343,2.4199 l 5.762,-4.0988 C 23.0046,6.0843 15.9996,5.6637 11.1636,3.1688 L 8.1259,5.0772 6.1634,5.6688 z" /> + </g> + <g + transform="translate(-1.4809406,4.4709305)" + id="patch-removed-2"> + <path + style="opacity:0.75;fill:#729fcf;stroke:#2e3436;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter" + id="path4858-1" + d="m 6.1642,5.6688 c 0,0 2.4747,1.8011 4.1564,2.5803 2.344,1.0865 10.154,2.1939 14.343,2.4199 l 5.762,-4.0988 C 23.0046,6.0843 15.9996,5.6637 11.1636,3.1688 L 8.1259,5.0772 6.1634,5.6688 z" /> + </g> + <g + id="patch-removed" + transform="translate(-1.220339,0.6779661)"> + <path + id="path4858" + d="m 6.1642,5.6688 c 0,0 2.4747,1.8011 4.1564,2.5803 2.344,1.0865 10.154,2.1939 14.343,2.4199 l 5.762,-4.0988 C 23.0046,6.0843 15.9996,5.6637 11.1636,3.1688 L 8.1259,5.0772 6.1634,5.6688 z" + style="opacity:0.75;fill:#729fcf;stroke:#2e3436;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter" /> + </g> +</svg>
Change 1 of 1 Show Entire File tortoisehg/​hgqt/​icons/​qpushall.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
@@ -0,0 +1,177 @@
+<?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" + id="svg2" + viewBox="0 0 32 32" + height="100%" + width="100%" + version="1.0" + inkscape:version="0.47 r22583" + sodipodi:docname="qpushall.svg"> + <sodipodi:namedview + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1" + objecttolerance="10" + gridtolerance="10" + guidetolerance="10" + inkscape:pageopacity="0" + inkscape:pageshadow="2" + inkscape:window-width="640" + inkscape:window-height="481" + id="namedview17" + showgrid="false" + inkscape:zoom="7.375" + inkscape:cx="16" + inkscape:cy="16" + inkscape:window-x="0" + inkscape:window-y="0" + inkscape:window-maximized="0" + inkscape:current-layer="svg2" /> + <title + id="title3066">QPush</title> + <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="perspective19" /> + <linearGradient + id="linearGradient3703" + x1="15.891" + gradientUnits="userSpaceOnUse" + y1="3.6791" + gradientTransform="translate(1.045063,-0.90872269)" + x2="15.891" + y2="9.9421"> + <stop + id="stop3689" + stop-color="#72d115" + offset="0" /> + <stop + id="stop3691" + stop-color="#60b012" + offset="1" /> + </linearGradient> + <inkscape:perspective + id="perspective2833" + inkscape:persp3d-origin="0.5 : 0.33333333 : 1" + inkscape:vp_z="1 : 0.5 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_x="0 : 0.5 : 1" + sodipodi:type="inkscape:persp3d" /> + <linearGradient + id="linearGradient3703-5" + x1="15.891" + gradientUnits="userSpaceOnUse" + y1="3.6791" + gradientTransform="translate(1.045063,-0.90872269)" + x2="15.891" + y2="9.9420996"> + <stop + id="stop3689-0" + stop-color="#72d115" + offset="0" /> + <stop + id="stop3691-9" + stop-color="#60b012" + offset="1" /> + </linearGradient> + </defs> + <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>QPush</dc:title> + <dc:date>2010-10-17</dc:date> + <dc:creator> + <cc:Agent> + <dc:title>Peer Sommerlund</dc:title> + </cc:Agent> + </dc:creator> + <dc:description>QPush icon for TortoiseHg</dc:description> + <cc:license + rdf:resource="http://creativecommons.org/licenses/by-sa/3.0/" /> + </cc:Work> + <cc:License + rdf:about="http://creativecommons.org/licenses/by-sa/3.0/"> + <cc:permits + rdf:resource="http://creativecommons.org/ns#Reproduction" /> + <cc:permits + rdf:resource="http://creativecommons.org/ns#Distribution" /> + <cc:requires + rdf:resource="http://creativecommons.org/ns#Notice" /> + <cc:requires + rdf:resource="http://creativecommons.org/ns#Attribution" /> + <cc:permits + rdf:resource="http://creativecommons.org/ns#DerivativeWorks" /> + <cc:requires + rdf:resource="http://creativecommons.org/ns#ShareAlike" /> + </cc:License> + </rdf:RDF> + </metadata> + <g + id="stack" + stroke-linejoin="miter" + stroke="#2e3436" + stroke-linecap="butt" + stroke-width="1px" + fill="#eeeeec"> + <path + id="path3375" + d="m3.9976,27.334,20,0,5.3328-5.3328-19.998,0-5.3348,5.3328z" /> + <path + id="path3378" + d="m3.9976,23.334,20,0,5.3328-5.3328-19.998,0-5.3348,5.3328z" /> + </g> + <g + id="patch-added"> + <path + id="path2865" + stroke-linejoin="miter" + d="m3.9976,19.335,20,0,5.3328-5.3328-19.998,0-5.3348,5.3328z" + stroke="#2e3436" + stroke-linecap="butt" + stroke-width="1px" + fill="#b1cae4" /> + </g> + <g + id="arrow-down" + transform="translate(-3.9322034,0)" + style="stroke-linecap:butt;stroke-linejoin:miter"> + <path + id="path2897" + d="m 17.839,7.7603 2.4594,0 -3.633,3.5747 -3.543,-3.5747 h 2.4158 c 0.431,-3.7075 -1.714,-5.4747 -1.714,-5.4747 l 2.5532,-1.0094 c 1.2634,3.2477 1.5369,3.5867 1.4619,6.4841 z" + style="fill:url(#linearGradient3703);stroke:#4e9a06;stroke-width:1" /> + <path + id="path2899" + d="m 17.589,8.0024 h 2.0987 l -3.023,2.9916 -2.836,-2.9916 1.947,0.0494 c 0.57813,-3.3476 -1.4913,-5.6657 -1.4913,-5.6657 0,0 1.9409,-0.78467 1.9409,-0.78467 1.3524,3.2278 1.3916,4.036 1.3638,6.401 z" + style="fill:none;stroke:#8ae234;stroke-width:0.5" /> + </g> + <g + id="arrow-down-6" + transform="translate(5.9336678,-0.06831187)" + style="stroke-linecap:butt;stroke-linejoin:miter"> + <path + id="path2897-3" + d="m 17.839,7.7603 2.4594,0 -3.633,3.5747 -3.543,-3.5747 h 2.4158 c 0.431,-3.7075 -1.714,-5.4747 -1.714,-5.4747 l 2.5532,-1.0094 c 1.2634,3.2477 1.5369,3.5867 1.4619,6.4841 z" + style="fill:url(#linearGradient3703-5);stroke:#4e9a06;stroke-width:1" /> + <path + id="path2899-8" + d="m 17.589,8.0024 h 2.0987 l -3.023,2.9916 -2.836,-2.9916 1.947,0.0494 c 0.57813,-3.3476 -1.4913,-5.6657 -1.4913,-5.6657 0,0 1.9409,-0.78467 1.9409,-0.78467 1.3524,3.2278 1.3916,4.036 1.3638,6.401 z" + style="fill:none;stroke:#8ae234;stroke-width:0.5" /> + </g> +</svg>
Change 1 of 1 Show Entire File tortoisehg/​hgqt/​icons/​qreorder.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
@@ -0,0 +1,175 @@
+<?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" + id="svg2" + viewBox="0 0 32 32" + height="100%" + width="100%" + version="1.0" + inkscape:version="0.47 r22583" + sodipodi:docname="qreorder.svg"> + <sodipodi:namedview + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1" + objecttolerance="10" + gridtolerance="10" + guidetolerance="10" + inkscape:pageopacity="0" + inkscape:pageshadow="2" + inkscape:window-width="1407" + inkscape:window-height="875" + id="namedview17" + showgrid="false" + inkscape:zoom="14.75" + inkscape:cx="18.805921" + inkscape:cy="17.995986" + inkscape:window-x="0" + inkscape:window-y="0" + inkscape:window-maximized="1" + inkscape:current-layer="svg2" /> + <title + id="title3066">QPush</title> + <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="perspective19" /> + <linearGradient + id="linearGradient3703" + x1="15.891" + gradientUnits="userSpaceOnUse" + y1="3.6791" + gradientTransform="translate(-2.4803607,0.58280273)" + x2="15.891" + y2="9.9421"> + <stop + id="stop3689" + stop-color="#72d115" + offset="0" /> + <stop + id="stop3691" + stop-color="#60b012" + offset="1" /> + </linearGradient> + <inkscape:perspective + id="perspective2833" + inkscape:persp3d-origin="0.5 : 0.33333333 : 1" + inkscape:vp_z="1 : 0.5 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_x="0 : 0.5 : 1" + sodipodi:type="inkscape:persp3d" /> + <linearGradient + id="linearGradient3703-5" + x1="15.891" + gradientUnits="userSpaceOnUse" + y1="3.6791" + gradientTransform="translate(1.045063,-0.90872269)" + x2="15.891" + y2="9.9420996"> + <stop + id="stop3689-0" + stop-color="#72d115" + offset="0" /> + <stop + id="stop3691-9" + stop-color="#60b012" + offset="1" /> + </linearGradient> + <inkscape:perspective + id="perspective2838" + inkscape:persp3d-origin="0.5 : 0.33333333 : 1" + inkscape:vp_z="1 : 0.5 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_x="0 : 0.5 : 1" + sodipodi:type="inkscape:persp3d" /> + </defs> + <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>QPush</dc:title> + <dc:date>2010-10-17</dc:date> + <dc:creator> + <cc:Agent> + <dc:title>Peer Sommerlund</dc:title> + </cc:Agent> + </dc:creator> + <dc:description>QPush icon for TortoiseHg</dc:description> + <cc:license + rdf:resource="http://creativecommons.org/licenses/by-sa/3.0/" /> + </cc:Work> + <cc:License + rdf:about="http://creativecommons.org/licenses/by-sa/3.0/"> + <cc:permits + rdf:resource="http://creativecommons.org/ns#Reproduction" /> + <cc:permits + rdf:resource="http://creativecommons.org/ns#Distribution" /> + <cc:requires + rdf:resource="http://creativecommons.org/ns#Notice" /> + <cc:requires + rdf:resource="http://creativecommons.org/ns#Attribution" /> + <cc:permits + rdf:resource="http://creativecommons.org/ns#DerivativeWorks" /> + <cc:requires + rdf:resource="http://creativecommons.org/ns#ShareAlike" /> + </cc:License> + </rdf:RDF> + </metadata> + <g + id="patch-added-9" + transform="translate(1.2343052,6.0093662)"> + <path + id="path2865-8" + d="m 3.9976,19.335 20,0 5.3328,-5.3328 -19.998,0 -5.3348,5.3328 z" + style="fill:#b1cae4;stroke:#2e3436;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter" /> + </g> + <path + style="fill:#eeeeec;stroke:#2e3436;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter" + d="m -8.748163,14.317051 20,0 5.3328,-5.3328001 -19.998,0 -5.3348,5.3328001 z" + id="path3375" /> + <g + id="patch-added" + transform="translate(-12.745763,-8.7806602)"> + <path + id="path2865" + d="m 3.9976,19.335 20,0 5.3328,-5.3328 -19.998,0 -5.3348,5.3328 z" + style="fill:#b1cae4;stroke:#2e3436;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter" /> + </g> + <g + id="arrow-down" + transform="translate(7.5932206,6.0338987)" + style="stroke-linecap:butt;stroke-linejoin:miter"> + <g + id="g2857"> + <path + sodipodi:nodetypes="ccccccccc" + style="fill:url(#linearGradient3703);stroke:#4e9a06;stroke-width:1" + d="m 14.313576,9.2518254 2.4594,0 -3.633,3.5746996 -3.4752031,-3.6424962 2.3480031,-10e-8 C 11.901402,1.273139 2.5699624,3.2347526 2.5699624,3.2347526 L 2.411298,0.46264065 C 6.9289353,0.18491693 14.253283,-0.15404918 14.313876,9.2518254 l -3e-4,0 z" + id="path2897" /> + <path + sodipodi:nodetypes="ccccccccc" + style="fill:none;stroke:#8ae234;stroke-width:0.5" + d="m 14.063576,9.4939254 2.0987,0 -3.023,2.9915996 -2.836,-2.9915996 1.947,0.0494 C 13.235186,0.90758981 2.8945693,2.6572865 2.8945693,2.6572865 c 0,0 -0.092998,-1.73382263 -0.092998,-1.73382263 C 7.0014285,0.76143337 14.227069,0.62048082 14.063676,9.4939554 l -10e-5,-3e-5 z" + id="path2899" /> + </g> + </g> + <path + style="fill:#eeeeec;stroke:#2e3436;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter" + d="m -8.7481631,6.7916272 20.0000001,0 5.3328,-5.3328 -19.9980001,0 -5.3348,5.3328 z" + id="path3378" /> +</svg>
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
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
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
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
 # mq.py - TortoiseHg MQ widget  #  # Copyright 2011 Steve Borho <steve@borho.org>  #  # This software may be used and distributed according to the terms of the  # GNU General Public License version 2 or any later version.    import os  import re    from PyQt4.QtCore import *  from PyQt4.QtGui import *    from mercurial import hg, ui, url, util, error  from mercurial import merge as mergemod  from hgext import mq as mqmod    from tortoisehg.util import hglib, patchctx  from tortoisehg.hgqt.i18n import _  from tortoisehg.hgqt import qtlib, cmdui, rejects, commit, shelve, qscilib    class MQWidget(QWidget):   showMessage = pyqtSignal(unicode)   output = pyqtSignal(QString, QString)   progress = pyqtSignal(QString, object, QString, QString, object)   makeLogVisible = pyqtSignal(bool)     def __init__(self, repo, parent, **opts):   QWidget.__init__(self, parent)     self.repo = repo   self.opts = opts   self.refreshing = False     layout = QVBoxLayout()   layout.setSpacing(0)   self.setLayout(layout)     # top toolbar   tbarhbox = QHBoxLayout()   tbarhbox.setSpacing(5)   self.layout().addLayout(tbarhbox, 0)   self.queueCombo = QComboBox()   self.optionsBtn = QPushButton(_('Options'))   self.msgSelectCombo = PatchMessageCombo(self)   tbarhbox.addWidget(self.queueCombo)   tbarhbox.addWidget(self.optionsBtn)   tbarhbox.addWidget(self.msgSelectCombo, 1)     # main area consists of a three-way horizontal splitter   self.splitter = splitter = QSplitter()   self.layout().addWidget(splitter, 1)   splitter.setOrientation(Qt.Horizontal)   splitter.setChildrenCollapsible(True)   splitter.setObjectName('splitter')     self.queueFrame = QFrame(splitter)   self.messageFrame = QFrame(splitter)     # Patch Queue Frame   layout = QVBoxLayout()   layout.setSpacing(5)   layout.setContentsMargins(0, 0, 0, 0)   self.queueFrame.setLayout(layout)     qtbarhbox = QHBoxLayout()   qtbarhbox.setSpacing(5)   layout.addLayout(qtbarhbox, 0)   qtbarhbox.setContentsMargins(0, 0, 0, 0)   self.qpushAllBtn = tb = QToolButton() - #tb.setIcon(qtlib.geticon('qpush')) + tb.setIcon(qtlib.geticon('qpushall'))   tb.setToolTip(_('Apply all patches'))   self.qpushBtn = tb = QToolButton()   tb.setIcon(qtlib.geticon('qpush'))   tb.setToolTip(_('Apply one patch'))   self.setGuardsBtn = tb = QToolButton()   #tb.setIcon(qtlib.geticon('qpush'))   tb.setToolTip(_('Configure guards for selected patch'))   self.qpushMoveBtn = tb = QToolButton() - #tb.setIcon(qtlib.geticon('qpush')) + tb.setIcon(qtlib.geticon('qreorder'))   tb.setToolTip(_('Apply selected patch next (change queue order)'))   self.qdeleteBtn = tb = QToolButton()   tb.setIcon(qtlib.geticon('filedelete'))   tb.setToolTip(_('Delete selected patches'))   self.qpopBtn = tb = QToolButton()   tb.setIcon(qtlib.geticon('qpop'))   tb.setToolTip(_('Unapply one patch'))   self.qpopAllBtn = tb = QToolButton() - #tb.setIcon(qtlib.geticon('qpop')) + tb.setIcon(qtlib.geticon('qpopall'))   tb.setToolTip(_('Unapply all patches'))   qtbarhbox.addWidget(self.qpushAllBtn)   qtbarhbox.addWidget(self.qpushBtn)   qtbarhbox.addStretch(1)   qtbarhbox.addWidget(self.setGuardsBtn)   qtbarhbox.addWidget(self.qpushMoveBtn)   qtbarhbox.addWidget(self.qdeleteBtn)   qtbarhbox.addStretch(1)   qtbarhbox.addWidget(self.qpopBtn)   qtbarhbox.addWidget(self.qpopAllBtn)     self.queueListWidget = QListWidget(self)   layout.addWidget(self.queueListWidget, 1)     self.guardSelBtn = QPushButton()   layout.addWidget(self.guardSelBtn, 0)     self.revisionOrCommitBtn = QPushButton()   layout.addWidget(self.revisionOrCommitBtn, 0)     # Message Frame   layout = QVBoxLayout()   layout.setSpacing(5)   layout.setContentsMargins(0, 0, 0, 0)   self.messageFrame.setLayout(layout)     mtbarhbox = QHBoxLayout()   mtbarhbox.setSpacing(8)   layout.addLayout(mtbarhbox, 0)   mtbarhbox.setContentsMargins(0, 0, 0, 0)   self.newCheckBox = QCheckBox(_('New Patch'))   self.patchNameLE = QLineEdit()   mtbarhbox.addWidget(self.newCheckBox)   mtbarhbox.addWidget(self.patchNameLE, 1)     self.messageEditor = commit.MessageEntry(self)   self.messageEditor.installEventFilter(qscilib.KeyPressInterceptor(self))   self.messageEditor.refresh(repo)   layout.addWidget(self.messageEditor, 1)     self.fileListWidget = QListWidget(self)   layout.addWidget(self.fileListWidget, 2)     qrefhbox = QHBoxLayout()   layout.addLayout(qrefhbox, 0)   qrefhbox.setContentsMargins(0, 0, 0, 0)   self.shelveBtn = QPushButton(_('Shelve'))   self.qnewOrRefreshBtn = QPushButton(_('QRefresh'))   qrefhbox.addStretch(1)   qrefhbox.addWidget(self.shelveBtn)   qrefhbox.addWidget(self.qnewOrRefreshBtn)     # Command runner and connections...   self.cmd = cmdui.Runner(_('Patch Queue'), parent != None, self)   self.cmd.output.connect(self.output)   self.cmd.makeLogVisible.connect(self.makeLogVisible)   self.cmd.progress.connect(self.progress)   self.cmd.commandFinished.connect(self.onCommandFinished)     self.shelveBtn.clicked.connect(self.launchShelveTool)   self.optionsBtn.clicked.connect(self.launchOptionsDialog)   self.revisionOrCommitBtn.clicked.connect(self.qinitOrCommit)   self.msgSelectCombo.activated.connect(self.onMessageSelected)   self.queueListWidget.currentRowChanged.connect(self.onPatchSelected)   self.queueListWidget.itemActivated.connect(self.onGotoPatch)   self.queueListWidget.itemChanged.connect(self.onRenamePatch)   self.qpushAllBtn.clicked.connect(self.onPushAll)   self.qpushBtn.clicked.connect(self.onPush)   self.qpushMoveBtn.clicked.connect(self.onPushMove)   self.qpopAllBtn.clicked.connect(self.onPopAll)   self.qpopBtn.clicked.connect(self.onPop)   self.setGuardsBtn.clicked.connect(self.onGuardConfigure)   self.qdeleteBtn.clicked.connect(self.onDelete)   self.newCheckBox.toggled.connect(self.onNewModeToggled)   self.qnewOrRefreshBtn.clicked.connect(self.onQNewOrQRefresh)     self.repo.configChanged.connect(self.onConfigChanged)   self.repo.repositoryChanged.connect(self.onRepositoryChanged)   self.setAcceptDrops(True)     if hasattr(self.patchNameLE, 'setPlaceholderText'): # Qt >= 4.7   self.patchNameLE.setPlaceholderText('### patch name ###')     if parent:   self.layout().setContentsMargins(2, 2, 2, 2)   else:   self.layout().setContentsMargins(0, 0, 0, 0)   self.setWindowTitle(_('TortoiseHg Patch Queue'))   self.statusbar = cmdui.ThgStatusBar(self)   self.layout().addWidget(self.statusbar)   self.progress.connect(self.statusbar.progress)   self.showMessage.connect(self.statusbar.showMessage)   QShortcut(QKeySequence.Refresh, self, self.reload)   self.resize(850, 550)     self.loadConfigs()   QTimer.singleShot(0, self.reload)     def getUserOptions(self, *optionlist):   out = []   for opt in optionlist:   if opt not in self.opts:   continue   val = self['opts']   if val is False:   continue   elif val is True:   out.append('--' + opt)   else:   out.append('--' + opt)   out.append(val)   return out     @pyqtSlot()   def onConfigChanged(self):   'Repository is reporting its config files have changed'   self.messageEditor.refresh(self.repo)     @pyqtSlot()   def onRepositoryChanged(self):   'Repository is reporting its changelog has changed'   self.reload()     @pyqtSlot(int)   def onCommandFinished(self, ret):   self.repo.decrementBusyCount()   if ret is not 0:   pass # TODO: look for reject notifications   self.reload() # TODO: probably redundant     @pyqtSlot()   def onPushAll(self):   self.repo.incrementBusyCount()   cmdline = ['qpush', '-R', self.repo.root, '--all']   cmdline += self.getUserOptions('force', 'exact')   self.cmd.run(cmdline)     @pyqtSlot()   def onPush(self):   self.repo.incrementBusyCount()   cmdline = ['qpush', '-R', self.repo.root]   cmdline += self.getUserOptions('force', 'exact')   self.cmd.run(cmdline)     @pyqtSlot()   def onPopAll(self):   self.repo.incrementBusyCount()   cmdline = ['qpop', '-R', self.repo.root, '--all']   cmdline += self.getUserOptions('force')   self.cmd.run(cmdline)     @pyqtSlot()   def onPop(self):   self.repo.incrementBusyCount()   cmdline = ['qpop', '-R', self.repo.root]   cmdline += self.getUserOptions('force')   self.cmd.run(cmdline)     @pyqtSlot()   def onPushMove(self):   patch = self.queueListWidget.currentItem()._thgpatch   cmdline = ['qpop', '-R', self.repo.root]   cmdline += self.getUserOptions('force')   cmdline += ['--move', '--', patch]   self.repo.incrementBusyCount()   self.cmd.run(cmdline)     @pyqtSlot()   def onGuardConfigure(self):   item = self.queueListWidget.currentItem()   patch = item._thgpatch   if item._thgguards:   uguards = hglib.tounicode(' '.join(item._thgguards))   else:   uguards = ''   new, ok = QInputDialog.getText(self,   _('Configure guards'),   _('Input new guards for %s:') % hglib.tounicode(patch),   text=uguards, flags=Qt.Sheet)   if not ok or new == uguards:   return   guards = []   for guard in hglib.fromunicode(new).split(' '):   guard = guard.strip()   if not guard:   continue   if not (guard[0] == '+' or guard[0] == '-'):   self.showMessage.emit(_('Guards must begin with "+" or "-"'))   continue   guards.append(guard)   cmdline = ['qguard', '-R', self.repo.root, '--', patch]   if guards:   cmdline += guards   else:   cmdline.insert(3, '--none')   self.repo.incrementBusyCount()   self.cmd.run(cmdline)     @pyqtSlot()   def onDelete(self):   from tortoisehg.hgqt import qdelete   patch = self.queueListWidget.currentItem()._thgpatch   dlg = qdelete.QDeleteDialog(self.repo, [patch], self)   dlg.finished.connect(dlg.deleteLater)   if dlg.exec_() == QDialog.Accepted:   self.reload()     @pyqtSlot(QListWidgetItem)   def onGotoPatch(self, item):   'Patch has been activated (return), issue qgoto'   cmdline = ['qgoto', '-R', self.repo.root]   cmdline += self.getUserOptions('force')   cmdline += ['--', item._thgpatch]   self.repo.incrementBusyCount()   self.cmd.run(cmdline)     @pyqtSlot(QListWidgetItem)   def onRenamePatch(self, item):   'Patch has been renamed, issue qrename'   self.repo.incrementBusyCount()   self.cmd.run(['qrename', '-R', self.repo.root, '--',   item._thgpatch, hglib.fromunicode(item.text())])     @pyqtSlot(int)   def onPatchSelected(self, row):   'Patch has been selected, update buttons'   if self.refreshing:   return   if row >= 0:   patch = self.queueListWidget.item(row)._thgpatch   applied = set([p.name for p in self.repo.mq.applied])   self.qdeleteBtn.setEnabled(patch not in applied)   self.qpushMoveBtn.setEnabled(patch not in applied)   self.setGuardsBtn.setEnabled(True)   else:   self.qdeleteBtn.setEnabled(False)   self.qpushMoveBtn.setEnabled(False)   self.setGuardsBtn.setEnabled(False)     @pyqtSlot(int)   def onMessageSelected(self, row):   if self.messageEditor.text() and self.messageEditor.isModified():   d = QMessageBox.question(self, _('Confirm Discard Message'),   _('Discard current commit message?'),   QMessageBox.Ok | QMessageBox.Cancel)   if d != QMessageBox.Ok:   return   self.setMessage(self.messages[row][1])   self.messageEditor.setFocus()     def setMessage(self, message):   self.messageEditor.setText(message)   lines = self.messageEditor.lines()   if lines:   lines -= 1   pos = self.messageEditor.lineLength(lines)   self.messageEditor.setCursorPosition(lines, pos)   self.messageEditor.ensureLineVisible(lines)   hs = self.messageEditor.horizontalScrollBar()   hs.setSliderPosition(0)   self.messageEditor.setModified(False)     @pyqtSlot()   def onQNewOrQRefresh(self):   if self.newCheckBox.isChecked():   name = hglib.fromunicode(self.patchNameLE.text())   if not name:   qtlib.ErrorMsgBox(_('Patch Name Required'),   _('You must enter a patch name'))   self.patchNameLE.setFocus()   return   cmdline = ['qnew', '--repository', self.repo.root, name]   else:   cmdline = ['qrefresh', '--repository', self.repo.root]   message = self.messageEditor.text()   if message:   cmdline += ['--message', hglib.fromunicode(message)]   cmdline += self.getUserOptions('user', 'currentuser', 'git',   'date', 'currentdate')   files = ['--']   for row in xrange(self.fileListWidget.count()):   item = self.fileListWidget.item(row)   if item.checkState() == Qt.Checked:   files.append(hglib.fromunicode(item.text()[2:]))   if len(files) > 1:   cmdline += files   else:   cmdline += ['--exclude', self.repo.root]   self.repo.incrementBusyCount()   self.cmd.run(cmdline)     @pyqtSlot()   def qinitOrCommit(self):   if os.path.isdir(self.repo.mq.join('.hg')):   dlg = commit.CommitDialog([], dict(root=self.repo.mq.path), self)   dlg.finished.connect(dlg.deleteLater)   dlg.exec_()   self.reload()   else:   self.repo.incrementBusyCount()   self.cmd.run(['qinit', '-c', '-R', self.repo.root])     @pyqtSlot()   def launchShelveTool(self):   dlg = shelve.ShelveDialog(self.repo, self)   dlg.finished.connect(dlg.deleteLater)   dlg.exec_()   self.reload()     @pyqtSlot()   def launchOptionsDialog(self):   dlg = OptionsDialog(self)   dlg.finished.connect(dlg.deleteLater)   dlg.setWindowFlags(Qt.Sheet)   dlg.setWindowModality(Qt.WindowModal)   if dlg.exec_() == QDialog.Accepted:   self.opts.update(dlg.outopts)     def reload(self):   self.refreshing = True   try:   try:   self._reload()   except Exception, e:   self.showMessage.emit(hglib.tounicode(str(e)))   import traceback   traceback.print_exc()   finally:   self.refreshing = False     def _reload(self):   ui, repo = self.repo.ui, self.repo     self.queueCombo.clear()   self.queueListWidget.clear()     ui.pushbuffer()   mqmod.qqueue(ui, repo, list=True)   out = ui.popbuffer()   activestr = ' (active)' # TODO: not locale safe   for i, qname in enumerate(out.splitlines()):   if qname.endswith(activestr):   current = i   qname = qname[:-len(activestr)]   self.queueCombo.addItem(hglib.tounicode(qname))   self.queueCombo.setCurrentIndex(current)   self.queueCombo.setEnabled(self.queueCombo.count() > 1)     # TODO: maintain current selection   applied = set([p.name for p in repo.mq.applied])   self.allguards = set()   items = []   for idx, patch in enumerate(repo.mq.series):   item = QListWidgetItem(hglib.tounicode(patch))   if patch in applied: # applied   f = item.font()   f.setBold(True)   item.setFont(f)   elif not repo.mq.pushable(idx)[0]: # guarded   f = item.font()   f.setItalic(True)   item.setFont(f)   patchguards = repo.mq.series_guards[idx]   if patchguards:   for guard in patchguards:   self.allguards.add(guard[1:])   uguards = hglib.tounicode(', '.join(patchguards))   else:   uguards = _('no guards')   uname = hglib.tounicode(patch)   item._thgpatch = patch   item._thgguards = patchguards   item.setToolTip(u'%s: %s' % (uname, uguards))   item.setFlags(Qt.ItemIsSelectable |   Qt.ItemIsEditable |   Qt.ItemIsEnabled)   items.append(item)   for item in reversed(items):   self.queueListWidget.addItem(item)     for guard in repo.mq.active():   self.allguards.add(guard)   self.refreshSelectedGuards()     self.messages = []   for patch in repo.mq.series:   ctx = repo.changectx(patch)   msg = ctx.description()   if msg:   self.messages.append((patch, msg))   self.msgSelectCombo.reset(self.messages)     if os.path.isdir(repo.mq.join('.hg')):   self.revisionOrCommitBtn.setText(_('Commit Queue'))   else:   self.revisionOrCommitBtn.setText(_('Revision Queue'))     self.qpushAllBtn.setEnabled(bool(repo.thgmqunappliedpatches))   self.qpushBtn.setEnabled(bool(repo.thgmqunappliedpatches))   self.qpushMoveBtn.setEnabled(False)   self.qdeleteBtn.setEnabled(False)   self.setGuardsBtn.setEnabled(False)   self.qpopBtn.setEnabled(bool(applied))   self.qpopAllBtn.setEnabled(bool(applied))     pctx = repo.changectx('.')   newmode = self.newCheckBox.isChecked()   if 'qtip' in pctx.tags():   self.fileListWidget.setEnabled(True)   self.messageEditor.setEnabled(True)   self.msgSelectCombo.setEnabled(True)   self.qnewOrRefreshBtn.setEnabled(True)   if not newmode:   self.setMessage(pctx.description())   name = repo.mq.applied[-1].name   self.patchNameLE.setText(hglib.tounicode(name))   else:   self.fileListWidget.setEnabled(newmode)   self.messageEditor.setEnabled(newmode)   self.msgSelectCombo.setEnabled(newmode)   self.qnewOrRefreshBtn.setEnabled(newmode)   if not newmode:   self.setMessage('')   self.patchNameLE.setText('')   self.patchNameLE.setEnabled(newmode)   self.refreshFileListWidget()     def onNewModeToggled(self, isChecked):   if isChecked:   self.fileListWidget.setEnabled(True)   self.qnewOrRefreshBtn.setText(_('QNew'))   self.qnewOrRefreshBtn.setEnabled(True)   self.messageEditor.setEnabled(True)   self.patchNameLE.setEnabled(True)   self.patchNameLE.selectAll()   self.patchNameLE.setFocus()   self.setMessage('')   else:   self.qnewOrRefreshBtn.setText(_('QRefresh'))   pctx = self.repo.changectx('.')   if 'qtip' in pctx.tags():   self.messageEditor.setEnabled(True)   self.setMessage(pctx.description())   name = self.repo.mq.applied[-1].name   self.patchNameLE.setText(hglib.tounicode(name))   self.qnewOrRefreshBtn.setEnabled(True)   self.fileListWidget.setEnabled(True)   else:   self.messageEditor.setEnabled(False)   self.qnewOrRefreshBtn.setEnabled(False)   self.fileListWidget.setEnabled(False)   self.patchNameLE.setText('')   self.setMessage('')   self.patchNameLE.setEnabled(False)   self.refreshing = True   try:   try:   self.refreshFileListWidget()   except Exception, e:   self.showMessage.emit(hglib.tounicode(str(e)))   import traceback   traceback.print_exc()   finally:   self.refreshing = False     def refreshFileListWidget(self):   # TODO: maintain selection, check state   def addfiles(mode, files):   for file in files:   item = QListWidgetItem(u'%s %s' % (mode, hglib.tounicode(file)))   item.setFlags(flags)   item.setCheckState(Qt.Checked)   self.fileListWidget.addItem(item)   self.fileListWidget.clear()   pctx = self.repo.changectx('.')   newmode = self.newCheckBox.isChecked()   M, A, R = self.repo[None].status()[:3]   if not newmode and 'qtip' in pctx.tags():   pm, pa, pr = self.repo.status(pctx.p1().node(), pctx.node())[:3]   M = set(pm) or set(M)   A = set(pa) or set(A)   R = set(pr) or set(R)   elif not newmode:   return   flags = Qt.ItemIsSelectable | Qt.ItemIsUserCheckable | Qt.ItemIsEnabled   addfiles(u'M', M)   addfiles(u'A', A)   addfiles(u'R', R)     def refreshSelectedGuards(self):   total = len(self.allguards)   count = len(self.repo.mq.active())   oldmenu = self.guardSelBtn.menu()   if oldmenu:   oldmenu.setParent(None)   menu = QMenu(self)   for guard in self.allguards:   a = menu.addAction(hglib.tounicode(guard))   a.setCheckable(True)   a.setChecked(guard in self.repo.mq.active())   a.triggered.connect(self.onGuardSelectionChange)   self.guardSelBtn.setMenu(menu)   self.guardSelBtn.setText(_('Guards: %d/%d') % (count, total))     def onGuardSelectionChange(self, isChecked):   guard = hglib.fromunicode(self.sender().text())   newguards = self.repo.mq.active()[:]   if isChecked:   newguards.append(guard)   elif guard in newguards:   newguards.remove(guard)   cmdline = ['qselect', '-R', self.repo.root]   cmdline += newguards or ['--none']   self.cmd.run(cmdline)     # Capture drop events, try to import into current patch queue     def dragEnterEvent(self, event):   event.acceptProposedAction()     def dragMoveEvent(self, event):   event.acceptProposedAction()     def dropEvent(self, event):   paths = [unicode(u.toLocalFile()) for u in event.mimeData().urls()]   filepaths = [p for p in paths if os.path.isfile(p)]   if filepaths:   event.setDropAction(Qt.CopyAction)   event.accept()   else:   super(MQWidget, self).dropEvent(event)   return   dlg = thgimport.ImportDialog(repo=self.repo, parent=self)   # TODO: send flag to dialog indicating this is a qimport (alias?)   dlg.finished.connect(dlg.deleteLater)   dlg.setfilepaths(filepaths)   dlg.exec_()     # End drop events     def loadConfigs(self):   'Load history, etc, from QSettings instance'   s = QSettings()   self.splitter.restoreState(s.value('mq/splitter').toByteArray())   userhist = s.value('commit/userhist').toStringList()   self.opts['userhist'] = [hglib.fromunicode(u) for u in userhist if u]   if not self.parent():   self.restoreGeometry(s.value('mq/geom').toByteArray())     def storeConfigs(self):   'Save history, etc, in QSettings instance'   s = QSettings()   s.setValue('mq/splitter', self.splitter.saveState())   if not self.parent():   s.setValue('mq/geom', self.saveGeometry())     def canExit(self):   self.storeConfigs()   return not self.cmd.core.running()     def keyPressEvent(self, event):   if event.key() == Qt.Key_Escape:   if self.cmd.core.running():   self.cmd.cancel()   elif not self.parent() and self.canExit():   self.close()   else:   return super(MQWidget, self).keyPressEvent(event)        class PatchMessageCombo(QComboBox):   def __init__(self, parent):   super(PatchMessageCombo, self).__init__(parent)   self.reset([])     def reset(self, msglist):   self.clear()   self.addItem(_('Patch commit messages...'))   self.loaded = False   self.msglist = msglist     def showPopup(self):   if not self.loaded and self.msglist:   self.clear()   for patch, message in self.msglist:   sum = message.split('\n', 1)[0][:70]   self.addItem(hglib.tounicode('%s: %s' % (patch, sum)))   self.loaded = True   if self.loaded:   super(PatchMessageCombo, self).showPopup()        class OptionsDialog(QDialog):   'Utility dialog for configuring uncommon options'   def __init__(self, parent):   QDialog.__init__(self, parent)   self.setWindowTitle('MQ options')     layout = QFormLayout()   self.setLayout(layout)     self.gitcb = QCheckBox(_('Force use of git extended diff format'))   layout.addRow(self.gitcb, None)     self.forcecb = QCheckBox(_('Force push or pop'))   layout.addRow(self.forcecb, None)     self.exactcb = QCheckBox(_('Apply patch to its recorded parent'))   layout.addRow(self.exactcb, None)     self.currentdatecb = QCheckBox(_('Update date field with current date'))   layout.addRow(self.currentdatecb, None)     self.datele = QLineEdit()   layout.addRow(QLabel(_('Specify an explicit date:')), self.datele)     self.currentusercb = QCheckBox(_('Update author field with current user'))   layout.addRow(self.currentusercb, None)     self.userle = QLineEdit()   layout.addRow(QLabel(_('Specify an explicit author:')), self.userle)     self.currentdatecb.toggled.connect(self.datele.setDisabled)   self.currentusercb.toggled.connect(self.userle.setDisabled)     self.gitcb.setChecked(parent.opts.get('git', False))   self.forcecb.setChecked(parent.opts.get('force', False))   self.exactcb.setChecked(parent.opts.get('exact', False))   self.currentdatecb.setChecked(parent.opts.get('currentdate', False))   self.currentusercb.setChecked(parent.opts.get('currentuser', False))   self.datele.setText(hglib.tounicode(parent.opts.get('date', '')))   self.userle.setText(hglib.tounicode(parent.opts.get('user', '')))     BB = QDialogButtonBox   bb = QDialogButtonBox(BB.Ok|BB.Cancel)   bb.accepted.connect(self.accept)   bb.rejected.connect(self.reject)   self.bb = bb   layout.addWidget(bb)     def accept(self):   outopts = {}   outopts['git'] = self.gitcb.isChecked()   outopts['force'] = self.forcecb.isChecked()   outopts['exact'] = self.exactcb.isChecked()   outopts['currentdate'] = self.currentdatecb.isChecked()   outopts['currentuser'] = self.currentusercb.isChecked()   if self.currentdatecb.isChecked():   outopts['date'] = ''   else:   outopts['date'] = hglib.fromunicode(self.datele.text())   if self.currentusercb.isChecked():   outopts['user'] = ''   else:   outopts['user'] = hglib.fromunicode(self.userle.text())     self.outopts = outopts   QDialog.accept(self)    def run(ui, *pats, **opts):   from tortoisehg.util import paths   from tortoisehg.hgqt import thgrepo   repo = thgrepo.repository(ui, path=paths.find_root())   return MQWidget(repo, None, **opts)
 
49
50
51
 
 
 
52
53
54
 
49
50
51
52
53
54
55
56
57
@@ -49,6 +49,9 @@
  <file>icons/push.svg</file>   <file>icons/qpush.svg</file>   <file>icons/qpop.svg</file> + <file>icons/qpopall.svg</file> + <file>icons/qpushall.svg</file> + <file>icons/qreorder.svg</file>   <file>icons/reviewboard.png</file>   <file>icons/bookmark.png</file>   <file>icons/extensions.svg</file>