Rev 4696: Align RevisionTextStore and SignatureTextStore keys() definitions for weave repos in http://bazaar.launchpad.net/~vila/bzr/integration2

Vincent Ladeuil v.ladeuil+lp at free.fr
Thu Sep 17 09:05:52 BST 2009


At http://bazaar.launchpad.net/~vila/bzr/integration2

------------------------------------------------------------
revno: 4696 [merge]
revision-id: v.ladeuil+lp at free.fr-20090917080543-oxipftu5kcjsk2b1
parent: pqm at pqm.ubuntu.com-20090916123002-46bfl24pa898h8cq
parent: v.ladeuil+lp at free.fr-20090916171907-i5pd2mrwgg1dzmtr
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: integration2
timestamp: Thu 2009-09-17 10:05:43 +0200
message:
  Align RevisionTextStore and SignatureTextStore keys() definitions for weave repos
modified:
  NEWS                           NEWS-20050323055033-4e00b5db738777ff
  bzrlib/repofmt/weaverepo.py    presplitout.py-20070125045333-wfav3tsh73oxu3zk-1
-------------- next part --------------
=== modified file 'NEWS'
--- a/NEWS	2009-09-16 10:29:18 +0000
+++ b/NEWS	2009-09-16 17:19:07 +0000
@@ -74,6 +74,10 @@
   chk_bytes root records.
   (Andrew Bennetts, #423506)
 
+* Weave based repositories couldn't be cloned when committers were using
+  domains or user ids embedding '.sig'. Now they can.
+  (Matthew Fuller, Vincent Ladeuil, #430868)
+
 Improvements
 ************
 

=== modified file 'bzrlib/repofmt/weaverepo.py'
--- a/bzrlib/repofmt/weaverepo.py	2009-08-18 14:49:52 +0000
+++ b/bzrlib/repofmt/weaverepo.py	2009-09-16 17:19:07 +0000
@@ -688,7 +688,7 @@
             path, ext = os.path.splitext(relpath)
             if ext == '.gz':
                 relpath = path
-            if '.sig' not in relpath:
+            if not relpath.endswith('.sig'):
                 relpaths.add(relpath)
         paths = list(relpaths)
         return set([self._mapper.unmap(path) for path in paths])



More information about the bazaar-commits mailing list