chiark / gitweb /
Check for top == head at the start of every transaction
authorKarl Hasselström <kha@treskal.com>
Sun, 21 Sep 2008 12:17:42 +0000 (14:17 +0200)
committerKarl Hasselström <kha@treskal.com>
Sun, 21 Sep 2008 12:19:07 +0000 (14:19 +0200)
commitf4e6a60e96e4c06951fd1da2cd5faa52f7f4154d
tree6a5d608af6841fab1f82ee3bff4fbdef7e7129ee
parentc539d6250d99e978313fbfaf70ceaf4ebec8dcb7
Check for top == head at the start of every transaction

We used to check it in the run() method, but that's sometimes too
late: for example, it causes stg coalesce to ask for a commit message
_before_ the check, resulting in a lost commit message if the check
fails.

As before, the check can be disabled for the few commands that need
it.

Signed-off-by: Karl Hasselström <kha@treskal.com>
stgit/commands/redo.py
stgit/commands/reset.py
stgit/commands/uncommit.py
stgit/commands/undo.py
stgit/lib/transaction.py
t/t2600-coalesce.sh