Run cmd.cleanup_now() after executing bzr commands.
authorW. Trevor King <wking@drexel.edu>
Mon, 6 Dec 2010 15:12:57 +0000 (10:12 -0500)
committerW. Trevor King <wking@drexel.edu>
Mon, 6 Dec 2010 15:13:01 +0000 (10:13 -0500)
commitef0a5537747a2e5a0b2248018e981f80ae0b0f9f
tree832ccf487812e8ccf03ab8fe47c0950a0db3ee8b
parent22dd202ff4c0a1893f6e9f4d2b6aa1d4da3bf728
Run cmd.cleanup_now() after executing bzr commands.

Otherwise
  be remove ...

blocks if it needs to remove multiple files, since
bzrlib.builtins.cmd_remove needs write locks, and the second remove
will try to aquire the lock that the first aquire hadn't released.  If
we force the release, the lock will be available for the second (and
later) removal.

It's not a problem to call cleanup_now() too often, because calling it
clears the cleanup command stack, so I just added explicit cleanups
after every bzr .run() call.
libbe/storage/vcs/bzr.py