/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to push.py

Support remote dpush (except for references).

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Push implementation that simply prints message saying push is not supported."""
18
18
 
19
 
from dulwich.client import (
20
 
    SimpleFetchGraphWalker,
21
 
    )
22
 
from dulwich.object_store import (
23
 
    MissingObjectFinder,
24
 
    )
25
 
 
26
19
from bzrlib import (
27
20
    ui,
28
21
    )
221
214
        try:
222
215
            store = BazaarObjectStore(self.source, self.mapping)
223
216
            def generate_blob_contents(have, want):
224
 
                graphwalker = SimpleFetchGraphWalker(want, store.get_parents)
225
 
                for h in have:
226
 
                    graphwalker.ack(h)
227
 
                return store.iter_shas(store.find_missing_objects(want, graphwalker))
 
217
                return store.iter_shas(store.find_missing_objects(have, want))
228
218
            new_refs = self.target.send_pack(determine_wants,
229
219
                    generate_blob_contents)
230
220
        finally: