/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

Put plugin info in separate file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
        # or already present remotely (as git doesn't do ghosts)
82
82
        return False
83
83
 
84
 
    def queue(self, sha, obj, path, ie=None, inv=None):
 
84
    def queue(self, sha, obj, path, ie=None, inv=None, unusual_modes=None):
85
85
        if obj is None:
86
 
            obj = (ie, inv)
 
86
            obj = (ie, inv, unusual_modes)
87
87
        self._pending.append((obj, path))
88
88
        self._sent_shas.add(sha)
89
89
 
103
103
                tree_sha = sha
104
104
            if not self.need_sha(sha):
105
105
                continue
106
 
            self.queue(sha, object, inv.id2path(ie.file_id), ie, inv)
 
106
            self.queue(sha, object, inv.id2path(ie.file_id), ie, inv, unusual_modes)
107
107
            if ie.kind == "directory":
108
108
                todo.extend(ie.children.values())
109
109
        assert tree_sha is not None
110
110
        commit = self._object_store._get_commit(rev, tree_sha)
111
 
        self.queue(commit.id, commit, None)
 
111
        self.queue(commit.id, commit, None, None)
112
112
        return commit.id
113
113
 
114
114
    def __len__(self):