Rev 2345: Correct DirState._entries_to_current_state to group entries by directory properly. in sftp://bazaar.launchpad.net/%7Ebzr/bzr/dirstate/

Robert Collins robertc at robertcollins.net
Tue Feb 20 21:24:46 GMT 2007


At sftp://bazaar.launchpad.net/%7Ebzr/bzr/dirstate/

------------------------------------------------------------
revno: 2345
revision-id: robertc at robertcollins.net-20070220212335-2zkgn5uemfgig260
parent: robertc at robertcollins.net-20070220205121-3xw8a0qe1uql9eeq
committer: Robert Collins <robertc at robertcollins.net>
branch nick: dirstate
timestamp: Wed 2007-02-21 08:23:35 +1100
message:
  Correct DirState._entries_to_current_state to group entries by directory properly.
modified:
  bzrlib/dirstate.py             dirstate.py-20060728012006-d6mvoihjb3je9peu-1
=== modified file 'bzrlib/dirstate.py'
--- a/bzrlib/dirstate.py	2007-02-20 20:51:21 +0000
+++ b/bzrlib/dirstate.py	2007-02-20 21:23:35 +0000
@@ -409,7 +409,8 @@
             if entry[0][0] != current_dirname:
                 # new block
                 current_block = []
-                self._dirblocks.append((entry[0][0], current_block))
+                current_dirname = entry[0][0]
+                self._dirblocks.append((current_dirname, current_block))
             elif entry[0][0:2] != root_key:
                 # this is not a root entry for a tree
                 current_block = self._dirblocks[-1][1]



More information about the bazaar-commits mailing list