Rev 177: Added reporting of UnknownFormatErrors. in http://people.ubuntu.com/~robertc/pqm/trunk

Daniel Watkins daniel at daniel-watkins.co.uk
Tue Jul 15 10:19:17 BST 2008


At http://people.ubuntu.com/~robertc/pqm/trunk

------------------------------------------------------------
revno: 177
revision-id: daniel at daniel-watkins.co.uk-20080715091758-2sf026221nr6lxda
parent: robertc at robertcollins.net-20080710074340-dl0w25nbutl88sz2
committer: Daniel Watkins <daniel at daniel-watkins.co.uk>
branch nick: pqm.dev
timestamp: Tue 2008-07-15 10:17:58 +0100
message:
  Added reporting of UnknownFormatErrors.
-------------- next part --------------
=== modified file 'pqm/__init__.py'
--- a/pqm/__init__.py	2007-11-29 21:40:54 +0000
+++ b/pqm/__init__.py	2008-07-15 09:17:58 +0000
@@ -1384,6 +1384,11 @@
             if not hasattr(e, "output"):
                 self.last_error.output = []
             return False
+        except bzrlib.errors.UnknownFormatError, e:
+            self.last_error = e
+            raise PQMTlaFailure(sender,
+                "Branch '%s' had the following problem:\n"
+                "  %s" % (branchspec, e))
 
     def commit(self, sender, dir, summary, parent_branch, config):
         from bzrlib.branch import Branch



More information about the bazaar-commits mailing list