comparison tests/test-topic.t @ 6931:237f99ee3d64 stable

tests: remove leading spaces in `hg help` output, run only on Mercurial 6.9+ Core decided to remove a lot of leading spaces in docstrings to support Python 3.13, see 51057ab0dffa for details.
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 11 Nov 2024 10:39:57 +0400
parents 1dc008b6ad21
children
comparison
equal deleted inserted replaced
6930:195941260a67 6931:237f99ee3d64
169 Change navigation: 169 Change navigation:
170 170
171 stack list all changesets in a topic and other information 171 stack list all changesets in a topic and other information
172 172
173 (use 'hg help -v topic' to show built-in aliases and global options) 173 (use 'hg help -v topic' to show built-in aliases and global options)
174
175 #if hg69
174 $ hg help topics 176 $ hg help topics
175 hg topics [OPTION]... [-r REV]... [TOPIC] 177 hg topics [OPTION]... [-r REV]... [TOPIC]
176 178
177 View current topic, set current topic, change topic for a set of revisions, or 179 View current topic, set current topic, change topic for a set of revisions, or
178 see all topics. 180 see all topics.
179 181
180 Clear topic on existing topiced revisions: 182 Clear topic on existing topiced revisions:
181 183
182 hg topics --rev <related revset> --clear 184 hg topics --rev <related revset> --clear
183 185
184 Change topic on some revisions: 186 Change topic on some revisions:
185 187
186 hg topics <newtopicname> --rev <related revset> 188 hg topics <newtopicname> --rev <related revset>
187 189
188 Clear current topic: 190 Clear current topic:
189 191
190 hg topics --clear 192 hg topics --clear
191 193
192 Set current topic: 194 Set current topic:
193 195
194 hg topics <topicname> 196 hg topics <topicname>
195 197
196 List of topics: 198 List of topics:
197 199
198 hg topics 200 hg topics
199 201
200 List of topics sorted according to their last touched time displaying last 202 List of topics sorted according to their last touched time displaying last
201 touched time and the user who last touched the topic: 203 touched time and the user who last touched the topic:
202 204
203 hg topics --age 205 hg topics --age
204 206
205 The active topic (if any) will be prepended with a "*". 207 The active topic (if any) will be prepended with a "*".
206 208
207 The '--current' flag helps to take active topic into account. For example, 209 The '--current' flag helps to take active topic into account. For example, if
208 if you want to set the topic on all the draft changesets to the active 210 you want to set the topic on all the draft changesets to the active topic, you
209 topic, you can do: 'hg topics -r "draft()" --current' 211 can do: 'hg topics -r "draft()" --current'
210 212
211 The --verbose version of this command display various information on the 213 The --verbose version of this command display various information on the state
212 state of each topic. 214 of each topic.
213 215
214 options ([+] can be repeated): 216 options ([+] can be repeated):
215 217
216 --clear clear active topic if any 218 --clear clear active topic if any
217 -r --rev REV [+] revset of existing revisions 219 -r --rev REV [+] revset of existing revisions
219 --age show when you last touched the topics 221 --age show when you last touched the topics
220 --current display the current topic only 222 --current display the current topic only
221 -T --template TEMPLATE display with template 223 -T --template TEMPLATE display with template
222 224
223 (some details hidden, use --verbose to show complete help) 225 (some details hidden, use --verbose to show complete help)
226 #endif
227
224 $ hg topics 228 $ hg topics
225 229
226 Test topics interaction with evolution: 230 Test topics interaction with evolution:
227 231
228 $ hg topics --config experimental.evolution= \ 232 $ hg topics --config experimental.evolution= \