Rev 2805: Add comment for igc. in http://people.ubuntu.com/~robertc/baz2.0/commit-builder

Robert Collins robertc at robertcollins.net
Tue Sep 11 01:29:28 BST 2007


At http://people.ubuntu.com/~robertc/baz2.0/commit-builder

------------------------------------------------------------
revno: 2805
revision-id: robertc at robertcollins.net-20070911002917-53h2vb7ex4xh00u7
parent: robertc at robertcollins.net-20070909220156-wmm9up3q0mzisrb2
committer: Robert Collins <robertc at robertcollins.net>
branch nick: commit-builder
timestamp: Tue 2007-09-11 10:29:17 +1000
message:
  Add comment for igc.
modified:
  bzrlib/repository.py           rev_storage.py-20051111201905-119e9401e46257e3
=== modified file 'bzrlib/repository.py'
--- a/bzrlib/repository.py	2007-09-09 22:01:56 +0000
+++ b/bzrlib/repository.py	2007-09-11 00:29:17 +0000
@@ -2297,6 +2297,9 @@
     def _add_text_to_weave(self, file_id, new_lines, parents):
         versionedfile = self.repository.weave_store.get_weave_or_empty(
             file_id, self.repository.get_transaction())
+        # Don't change this to add_lines - add_lines_with_ghosts is cheaper
+        # than add_lines, and allows committing when a parent is ghosted for
+        # some reason.
         result = versionedfile.add_lines_with_ghosts(
             self._new_revision_id, parents, new_lines)[0:2]
         versionedfile.clear_cache()



More information about the bazaar-commits mailing list