Rev 4575: Allow enabling iter_changes for commit when specific_files are present. in http://bazaar.launchpad.net/~lifeless/bzr/commit-specific-files

Robert Collins robertc at robertcollins.net
Wed Jul 29 07:24:02 BST 2009


At http://bazaar.launchpad.net/~lifeless/bzr/commit-specific-files

------------------------------------------------------------
revno: 4575
revision-id: robertc at robertcollins.net-20090729062358-17im1xz4jhmgtusf
parent: robertc at robertcollins.net-20090729061227-l7a8kz6ja0x25nh9
committer: Robert Collins <robertc at robertcollins.net>
branch nick: commit-specific-files
timestamp: Wed 2009-07-29 16:23:58 +1000
message:
  Allow enabling iter_changes for commit when specific_files are present.
=== modified file 'NEWS'
--- a/NEWS	2009-07-29 04:57:50 +0000
+++ b/NEWS	2009-07-29 06:23:58 +0000
@@ -94,6 +94,10 @@
 * Can now rename/move files even if they have been removed from the inventory.
   (Marius Kruger)
 
+* Commit of specific files no longer prevents using the the iter_changes
+  codepath. On 2a repositories, commit of specific files should now be as
+  fast, or slightly faster, than a full commit. (Robert Collins)
+
 * The internal core code that handles specific file operations like
   ``bzr st FILENAME`` or ``bzr commit FILENAME`` has been changed to
   include the parent directories if they have altered, and when a

=== modified file 'bzrlib/commit.py'
--- a/bzrlib/commit.py	2009-07-15 05:54:37 +0000
+++ b/bzrlib/commit.py	2009-07-29 06:23:58 +0000
@@ -285,7 +285,6 @@
         # the command line parameters, and the repository has fast delta
         # generation. See bug 347649.
         self.use_record_iter_changes = (
-            not self.specific_files and
             not self.exclude and 
             not self.branch.repository._format.supports_tree_reference and
             (self.branch.repository._format.fast_deltas or




More information about the bazaar-commits mailing list