/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 breezy/git/commit.py

  • Committer: Jelmer Vernooij
  • Date: 2020-02-07 02:14:30 UTC
  • mto: This revision was merged to the branch mainline in revision 7492.
  • Revision ID: jelmer@jelmer.uk-20200207021430-m49iq3x4x8xlib6x
Drop python2 support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
from ..repository import (
40
40
    CommitBuilder,
41
41
    )
42
 
from ..sixish import (
43
 
    viewitems,
44
 
    )
45
42
 
46
43
from dulwich.objects import (
47
44
    Blob,
155
152
 
156
153
    def finish_inventory(self):
157
154
        # eliminate blobs that were removed
158
 
        self._blobs = {k: v for (k, v) in viewitems(
159
 
            self._blobs) if v is not None}
 
155
        self._blobs = {k: v for (k, v) in self._blobs.items() if v is not None}
160
156
 
161
157
    def _iterblobs(self):
162
158
        return ((path, sha, mode) for (path, (mode, sha))
163
 
                in viewitems(self._blobs))
 
159
                in self._blobs.items())
164
160
 
165
161
    def commit(self, message):
166
162
        self._validate_unicode_text(message, 'commit message')