diff options
author | Karl Wiberg <kha@treskal.com> | 2011-06-01 07:19:17 +0200 |
---|---|---|
committer | Karl Wiberg <kha@treskal.com> | 2011-06-01 07:19:17 +0200 |
commit | 8a7085ff4d5b65e5d254b5388df9b8ec9f4f905c (patch) | |
tree | 7a162f35704a8eb773ac4d2c585ebde4357542cb | |
parent | 8d9d47951f0b6519afd4b72df763b21fad1d9d3d (diff) | |
download | stgit-8a7085ff4d5b65e5d254b5388df9b8ec9f4f905c.tar.gz |
reorder_patches: Comment that a failed push means we never get to the end
Signed-off-by: Karl Wiberg <kha@treskal.com>
-rw-r--r-- | stgit/lib/transaction.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/stgit/lib/transaction.py b/stgit/lib/transaction.py index a4ff562..25cc34b 100644 --- a/stgit/lib/transaction.py +++ b/stgit/lib/transaction.py @@ -409,6 +409,8 @@ class StackTransaction(object): self.pop_patches(lambda pn: pn in to_pop) for pn in applied[common:]: self.push_patch(pn, iw, allow_interactive = allow_interactive) + + # We only get here if all the pushes succeeded. assert self.applied == applied assert set(self.unapplied + self.hidden) == set(unapplied + hidden) self.unapplied = unapplied |