Rev 182: More effective wrapping of Bazaar2Handler.branch_exists. in http://bzr.daniel-watkins.co.uk/pqm/unknown-branch-formats
Daniel Watkins
daniel at daniel-watkins.co.uk
Tue Jul 15 12:33:49 BST 2008
At http://bzr.daniel-watkins.co.uk/pqm/unknown-branch-formats
------------------------------------------------------------
revno: 182
revision-id: daniel at daniel-watkins.co.uk-20080715113227-zcfvhua8y6cb31ho
parent: daniel at daniel-watkins.co.uk-20080715112514-5e6vvkrg9jk38mn9
committer: Daniel Watkins <daniel at daniel-watkins.co.uk>
branch nick: unknown-branch-formats
timestamp: Tue 2008-07-15 12:32:27 +0100
message:
More effective wrapping of Bazaar2Handler.branch_exists.
-------------- next part --------------
=== modified file 'pqm/__init__.py'
--- a/pqm/__init__.py 2008-07-15 11:25:14 +0000
+++ b/pqm/__init__.py 2008-07-15 11:32:27 +0000
@@ -571,8 +571,13 @@
def get_branch_handler(self, branchspec):
handler = Bazaar2Handler()
- branch_exists = self.wrap_command(
- handler.branch_exists, "", self.script.getSender(), branchspec)
+ sender = self.script.getSender()
+ branch_exists = False
+ try:
+ branch_exists = handler.branch_exists(sender, branchspec)
+ except PQMTlaFailure, e:
+ raise PQMCmdFailure(sender, self.successful, "",
+ self.output + e.output)
if branch_exists:
return handler
handler = self.get_arch_impl()
More information about the bazaar-commits
mailing list