##// END OF EJS Templates
mq: avoid silent failure when single patch doesn't apply (issue4604)...
Matt Mackall -
r24826:9b02b678 stable
parent child Browse files
Show More
@@ -822,7 +822,7 b' class queue(object):'
822 822 except AbortNoCleanup:
823 823 tr.close()
824 824 self.savedirty()
825 return 2, repo.dirstate.p1()
825 raise
826 826 except: # re-raises
827 827 try:
828 828 tr.abort()
@@ -880,7 +880,8 b' class queue(object):'
880 880 touched = set(touched) & tobackup
881 881 if touched and keepchanges:
882 882 raise AbortNoCleanup(
883 _("local changes found, refresh first"))
883 _("conflicting local changes found"),
884 hint=_("did you forget to qrefresh?"))
884 885 self.backup(repo, touched, copy=True)
885 886 tobackup = tobackup - touched
886 887 (patcherr, files, fuzz) = self.patch(repo, pf)
@@ -1417,6 +1418,8 b' class queue(object):'
1417 1418 else:
1418 1419 ret = self.apply(repo, s, list, all_files=all_files,
1419 1420 tobackup=tobackup, keepchanges=keepchanges)
1421 except AbortNoCleanup:
1422 raise
1420 1423 except: # re-raises
1421 1424 self.ui.warn(_('cleaning up working directory...'))
1422 1425 node = repo.dirstate.p1()
@@ -344,25 +344,29 b' test qpush --keep-changes'
344 344 $ echo b >> b
345 345 $ hg qpush --keep-changes
346 346 applying p3
347 errors during apply, please fix and refresh p2
348 [2]
347 abort: conflicting local changes found
348 (did you forget to qrefresh?)
349 [255]
349 350 $ rm b
350 351 $ hg qpush --keep-changes
351 352 applying p3
352 errors during apply, please fix and refresh p2
353 [2]
353 abort: conflicting local changes found
354 (did you forget to qrefresh?)
355 [255]
354 356 $ hg rm -A b
355 357 $ hg qpush --keep-changes
356 358 applying p3
357 errors during apply, please fix and refresh p2
358 [2]
359 abort: conflicting local changes found
360 (did you forget to qrefresh?)
361 [255]
359 362 $ hg revert -aq b
360 363 $ echo d > d
361 364 $ hg add d
362 365 $ hg qpush --keep-changes
363 366 applying p3
364 errors during apply, please fix and refresh p2
365 [2]
367 abort: conflicting local changes found
368 (did you forget to qrefresh?)
369 [255]
366 370 $ hg forget d
367 371 $ rm d
368 372 $ hg qpop
@@ -372,8 +376,9 b' test qpush --keep-changes'
372 376 $ hg qpush -a --keep-changes
373 377 applying p2
374 378 applying p3
375 errors during apply, please fix and refresh p2
376 [2]
379 abort: conflicting local changes found
380 (did you forget to qrefresh?)
381 [255]
377 382 $ hg qtop
378 383 p2
379 384 $ hg parents --template "{rev} {desc}\n"
General Comments 0
You need to be logged in to leave comments. Login now