Rev 3835: Document suppress_errors flag in abort_write_group docstring. in file:///home/pqm/archives/thelove/bzr/%2Btrunk/

Canonical.com Patch Queue Manager pqm at pqm.ubuntu.com
Thu Nov 13 07:50:07 GMT 2008


At file:///home/pqm/archives/thelove/bzr/%2Btrunk/

------------------------------------------------------------
revno: 3835
revision-id: pqm at pqm.ubuntu.com-20081113075004-skgl7ma39awgyjze
parent: pqm at pqm.ubuntu.com-20081112073322-dpai0jsluo3cvpf2
parent: andrew.bennetts at canonical.com-20081113071138-bwcfcsmnx4po24va
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Thu 2008-11-13 07:50:04 +0000
message:
  Document suppress_errors flag in abort_write_group docstring.
  	(trivial)
modified:
  bzrlib/remote.py               remote.py-20060720103555-yeeg2x51vn0rbtdp-1
  bzrlib/repository.py           rev_storage.py-20051111201905-119e9401e46257e3
    ------------------------------------------------------------
    revno: 3825.4.6
    revision-id: andrew.bennetts at canonical.com-20081113071138-bwcfcsmnx4po24va
    parent: andrew.bennetts at canonical.com-20081112052319-q1nu7d0zp6cqkyva
    committer: Andrew Bennetts <andrew.bennetts at canonical.com>
    branch nick: abort_write_group-error
    timestamp: Thu 2008-11-13 17:11:38 +1000
    message:
      Document the suppress_errors flag in the docstring.
    modified:
      bzrlib/remote.py               remote.py-20060720103555-yeeg2x51vn0rbtdp-1
      bzrlib/repository.py           rev_storage.py-20051111201905-119e9401e46257e3
=== modified file 'bzrlib/remote.py'
--- a/bzrlib/remote.py	2008-11-12 07:33:22 +0000
+++ b/bzrlib/remote.py	2008-11-13 07:50:04 +0000
@@ -347,6 +347,8 @@
         is not really applicable except as a compatibility thunk
         for older plugins that don't use e.g. the CommitBuilder
         facility.
+
+        :param suppress_errors: see Repository.abort_write_group.
         """
         self._ensure_real()
         return self._real_repository.abort_write_group(

=== modified file 'bzrlib/repository.py'
--- a/bzrlib/repository.py	2008-11-12 02:29:03 +0000
+++ b/bzrlib/repository.py	2008-11-13 07:11:38 +0000
@@ -517,6 +517,10 @@
     def abort_write_group(self, suppress_errors=False):
         """Commit the contents accrued within the current write group.
 
+        :param suppress_errors: if true, abort_write_group will catch and log
+            unexpected errors that happen during the abort, rather than
+            allowing them to propagate.  Defaults to False.
+
         :seealso: start_write_group.
         """
         if self._write_group is not self.get_transaction():




More information about the bazaar-commits mailing list