Rev 4995: (Jelmer) Make Repository.serialise_inventory private. in file:///home/pqm/archives/thelove/bzr/%2Btrunk/
Canonical.com Patch Queue Manager
pqm at pqm.ubuntu.com
Mon Feb 1 13:22:28 GMT 2010
At file:///home/pqm/archives/thelove/bzr/%2Btrunk/
------------------------------------------------------------
revno: 4995 [merge]
revision-id: pqm at pqm.ubuntu.com-20100201125309-4nitvjqjlp05b7vt
parent: pqm at pqm.ubuntu.com-20100201122133-g8vkmptowez6qaqi
parent: jelmer at samba.org-20100201114056-4ok3hzhisdxvhu2m
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Mon 2010-02-01 12:53:09 +0000
message:
(Jelmer) Make Repository.serialise_inventory private.
modified:
NEWS NEWS-20050323055033-4e00b5db738777ff
bzrlib/foreign.py foreign.py-20081112170002-olsxmandkk8qyfuq-1
bzrlib/repository.py rev_storage.py-20051111201905-119e9401e46257e3
=== modified file 'NEWS'
--- a/NEWS 2010-02-01 11:39:02 +0000
+++ b/NEWS 2010-02-01 11:40:56 +0000
@@ -34,13 +34,16 @@
API Changes
***********
+* ``Repository.deserialise_inventory`` has been renamed to
+ ``Repository._deserialise_inventory`` to indicate it is private.
+ (Jelmer Vernooij)
+
* ``Repository.get_inventory_xml`` has been renamed to
``Repository._get_inventory_xml`` to indicate it is private.
(Jelmer Vernooij)
-* ``Repository.deserialise_inventory`` has been renamed to
- ``Repository._deserialise_inventory`` to indicate it is private.
- (Jelmer Vernooij)
+* ``Repository.serialise_inventory`` has been renamed to
+ ``Repository._serialise_inventory`` to indicate it is private.
Internals
*********
=== modified file 'bzrlib/foreign.py'
--- a/bzrlib/foreign.py 2010-01-31 12:05:38 +0000
+++ b/bzrlib/foreign.py 2010-02-01 11:40:56 +0000
@@ -227,7 +227,7 @@
def _get_inventory_xml(self, revision_id):
"""See Repository._get_inventory_xml()."""
- return self.serialise_inventory(self.get_inventory(revision_id))
+ return self._serialise_inventory(self.get_inventory(revision_id))
def get_revision_xml(self, revision_id):
"""Return the XML representation of a revision.
=== modified file 'bzrlib/repository.py'
--- a/bzrlib/repository.py 2010-02-01 11:39:02 +0000
+++ b/bzrlib/repository.py 2010-02-01 11:40:56 +0000
@@ -2440,7 +2440,7 @@
result.revision_id, revision_id))
return result
- def serialise_inventory(self, inv):
+ def _serialise_inventory(self, inv):
return self._serializer.write_inventory_to_string(inv)
def _serialise_inventory_to_lines(self, inv):
More information about the bazaar-commits
mailing list