author | Alexander Gavrilov <angavrilov@gmail.com> | |
Sat, 9 Aug 2008 10:41:50 +0000 (14:41 +0400) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Mon, 11 Aug 2008 00:13:50 +0000 (10:13 +1000) | ||
commit | df75e86d7307c2fd16d8df1bcbe8d7ccfb7305ff | |
tree | e98fca706212fea4f404eeae39b87f5853a938e2 | tree | snapshot |
parent | 8eacbc1b03da401fbeaf67c4e2db8392692af88d | commit | diff |
gitk: Allow safely calling nukefile from a run queue handler
Originally dorunq assumed that the queue entry remained first
in the queue after the script eval, and blindly removed it.
However, if the handler calls nukefile, it may not be the
case anymore, and a random queue entry gets dropped instead.
This makes dorunq remove the entry before calling the
script, and adds a global variable to allow other functions
to determine if they are called from within a dorunq handler.
Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Originally dorunq assumed that the queue entry remained first
in the queue after the script eval, and blindly removed it.
However, if the handler calls nukefile, it may not be the
case anymore, and a random queue entry gets dropped instead.
This makes dorunq remove the entry before calling the
script, and adds a global variable to allow other functions
to determine if they are called from within a dorunq handler.
Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | diff | blob | history |