/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 check-all target.

Show diffs side-by-side

added added

removed removed

Lines of Context:
546
546
            mode = entry_mode(ie)
547
547
        hexsha = lookup_ie_sha1(ie)
548
548
        if hexsha is not None:
549
 
            tree.add(mode, name.encode("utf-8"), hexsha)
 
549
            tree.add(name.encode("utf-8"), mode, hexsha)
550
550
    if entry.parent_id is not None and len(tree) == 0:
551
551
        # Only the root can be an empty tree
552
552
        if empty_file_name is not None:
553
 
            tree.add(stat.S_IFREG | 0644, empty_file_name, 
554
 
                Blob().id)
 
553
            tree.add(empty_file_name, stat.S_IFREG | 0644, Blob().id)
555
554
        else:
556
555
            return None
557
556
    return tree