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

Add FOSDEM roundtripping notes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
        while stack and not path.startswith(cur):
139
139
            tree.serialize()
140
140
            sha = tree.sha().hexdigest()
141
 
            yield sha, tree, path
 
141
            yield sha, tree, cur
142
142
            t = (stat.S_IFDIR, urlutils.basename(cur).encode('UTF-8'), sha)
143
143
            cur, tree = stack.pop()
144
144
            tree.add(*t)
165
165
    while len(stack) > 1:
166
166
        tree.serialize()
167
167
        sha = tree.sha().hexdigest()
168
 
        yield sha, tree, path
 
168
        yield sha, tree, cur
169
169
        t = (stat.S_IFDIR, urlutils.basename(cur).encode('UTF-8'), sha)
170
170
        cur, tree = stack.pop()
171
171
        tree.add(*t)
172
172
 
173
173
    tree.serialize()
174
 
    yield tree.sha().hexdigest(), tree, ""
 
174
    yield tree.sha().hexdigest(), tree, cur
175
175
 
176
176
 
177
177
def revision_to_commit(rev, tree_sha, parent_lookup):