/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 fetch.py

  • Committer: Jelmer Vernooij
  • Date: 2009-04-02 16:10:24 UTC
  • mto: (0.200.326 trunk)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@samba.org-20090402161024-ngoay3s4mpsq5pts
Add -Dverify flag (not fully implemented yet).

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    )
28
28
 
29
29
from bzrlib import (
 
30
    debug,
30
31
    osutils,
31
32
    trace,
32
33
    ui,
58
59
from bzrlib.plugins.git.converter import (
59
60
    BazaarObjectStore,
60
61
    )
 
62
from bzrlib.plugins.git.mapping import (
 
63
    text_to_blob,
 
64
    )
61
65
from bzrlib.plugins.git.repository import (
62
66
    LocalGitRepository, 
63
67
    GitRepository, 
166
170
        assert ie.revision is not None
167
171
        texts.add_lines((file_id, ie.revision), parent_keys,
168
172
            osutils.split_lines(blob.data))
 
173
        if "verify" in debug.debug_flags:
 
174
            assert text_to_blob(blob.data).id == hexsha
169
175
        shagitmap.add_entry(hexsha, "blob", (ie.file_id, ie.revision))
170
176
    if file_id in base_inv:
171
177
        old_path = base_inv.id2path(file_id)
206
212
                return []
207
213
    # Remember for next time
208
214
    existing_children = set()
 
215
    if "verify" in debug.debug_flags:
 
216
        # FIXME:
 
217
        assert False
209
218
    shagitmap.add_entry(hexsha, "tree", (file_id, revision_id))
210
219
    tree = lookup_object(hexsha)
211
220
    for mode, name, hexsha in tree.entries():