Rev 4852: Fix test regressions when extensions were not compiled in http://bazaar.launchpad.net/~vila/bzr/integration

Vincent Ladeuil v.ladeuil+lp at free.fr
Wed Dec 2 08:43:49 GMT 2009


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

------------------------------------------------------------
revno: 4852 [merge]
revision-id: v.ladeuil+lp at free.fr-20091202084336-j1n07w2d0i9c36bk
parent: pqm at pqm.ubuntu.com-20091202083913-4nczjgrq71pkk0st
parent: john at arbash-meinel.com-20091201194412-k99flbryjf2c24hi
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: integration
timestamp: Wed 2009-12-02 09:43:36 +0100
message:
  Fix test regressions when extensions were not compiled
modified:
  bzrlib/index.py                index.py-20070712131115-lolkarso50vjr64s-1
  bzrlib/util/_bencode_py.py     bencode.py-20070220044742-sltr28q21w2wzlxi-1
-------------- next part --------------
=== modified file 'bzrlib/index.py'
--- a/bzrlib/index.py	2009-11-07 01:58:11 +0000
+++ b/bzrlib/index.py	2009-12-01 16:03:14 +0000
@@ -205,7 +205,9 @@
                 if reference not in self._nodes:
                     self._check_key(reference)
                     absent_references.append(reference)
-            node_refs.append(as_st(reference_list))
+            reference_list = as_st([as_st(ref).intern()
+                                    for ref in reference_list])
+            node_refs.append(reference_list)
         return as_st(node_refs), absent_references
 
     def add_node(self, key, value, references=()):

=== modified file 'bzrlib/util/_bencode_py.py'
--- a/bzrlib/util/_bencode_py.py	2009-10-13 14:36:50 +0000
+++ b/bzrlib/util/_bencode_py.py	2009-12-01 19:44:12 +0000
@@ -154,6 +154,8 @@
         encode_int(int(x), r)
     encode_func[BooleanType] = encode_bool
 
+from bzrlib._static_tuple_py import StaticTuple
+encode_func[StaticTuple] = encode_list
 try:
     from bzrlib._static_tuple_c import StaticTuple
 except ImportError:



More information about the bazaar-commits mailing list