Show More
@@ -396,13 +396,8 b' def updatemq(repo, state, skipped, **opt' | |||
|
396 | 396 | mq.qimport(repo, (), patchname=name, git=isgit, |
|
397 | 397 | rev=[str(state[rev])]) |
|
398 | 398 | |
|
399 |
# |
|
|
400 |
|
|
|
401 | pname = mq.guard_re.split(s, 1)[0] | |
|
402 | if pname in mq.fullseries: | |
|
403 | repo.ui.debug('restoring guard for patch %s' % (pname)) | |
|
404 | mq.fullseries.remove(pname) | |
|
405 | mq.fullseries.append(s) | |
|
399 | # restore old series to preserve guards | |
|
400 | mq.fullseries = original_series | |
|
406 | 401 |
|
|
407 | 402 | mq.savedirty() |
|
408 | 403 |
@@ -250,6 +250,7 b' Create mq repo with guarded patches foo ' | |||
|
250 | 250 | $ hg qnew foo |
|
251 | 251 | $ hg qguard foo +baz |
|
252 | 252 | $ echo foo > foo |
|
253 | $ hg add foo | |
|
253 | 254 | $ hg qref |
|
254 | 255 | $ hg qpop |
|
255 | 256 | popping foo |
@@ -258,6 +259,7 b' Create mq repo with guarded patches foo ' | |||
|
258 | 259 | $ hg qnew bar |
|
259 | 260 | $ hg qguard bar +baz |
|
260 | 261 | $ echo bar > bar |
|
262 | $ hg add bar | |
|
261 | 263 | $ hg qref |
|
262 | 264 | |
|
263 | 265 | $ hg qguard -l |
@@ -272,13 +274,13 b' Create mq repo with guarded patches foo ' | |||
|
272 | 274 | Create new head to rebase bar onto: |
|
273 | 275 | |
|
274 | 276 | $ hg up -C 0 |
|
275 |
0 files updated, 0 files merged, |
|
|
277 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
276 | 278 | $ echo b > b |
|
277 | 279 | $ hg add b |
|
278 | 280 | $ hg ci -m b |
|
279 | 281 | created new head |
|
280 | 282 | $ hg up -C 1 |
|
281 |
|
|
|
283 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
282 | 284 | $ echo a >> a |
|
283 | 285 | $ hg qref |
|
284 | 286 | |
@@ -290,13 +292,19 b' Create new head to rebase bar onto:' | |||
|
290 | 292 | o 0:* 'a' tags: qparent (glob) |
|
291 | 293 | |
|
292 | 294 | |
|
293 | Rebase bar: | |
|
295 | Rebase bar (make sure series order is preserved): | |
|
294 | 296 | |
|
297 | $ hg qseries | |
|
298 | bar | |
|
299 | foo | |
|
295 | 300 | $ hg -q rebase -d 1 |
|
301 | $ hg qseries | |
|
302 | bar | |
|
303 | foo | |
|
296 | 304 | |
|
297 | 305 | $ hg qguard -l |
|
306 | bar: +baz | |
|
298 | 307 | foo: +baz |
|
299 | bar: +baz | |
|
300 | 308 | |
|
301 | 309 | $ hg tglog |
|
302 | 310 | @ 2:* '[mq]: bar' tags: bar qbase qtip tip (glob) |
General Comments 0
You need to be logged in to leave comments.
Login now