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

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-08-22 00:24:16 UTC
  • mfrom: (7067.11.4 brz-git-pull)
  • Revision ID: breezy.the.bot@gmail.com-20180822002416-k7sl92s5vj2clzc4
Fix Git interrepository operations on Python 3.

Merged from https://code.launchpad.net/~jelmer/brz/brz-git-pull/+merge/353197

Show diffs side-by-side

added added

removed removed

Lines of Context:
146
146
        return lock.LogicalLockResult(self.unlock)
147
147
 
148
148
    def _lock_write_tree(self):
149
 
        # TODO(jelmer): Actually create index.lock
150
149
        if not self._lock_mode:
151
150
            self._lock_mode = 'w'
152
151
            self._lock_count = 1
205
204
                    self._flush(self._index_file)
206
205
                    self._index_file.close()
207
206
                else:
208
 
                    # Somebody else already wrote the index file
209
 
                    # by calling .flush()
 
207
                    # Something else already triggered a write of the index
 
208
                    # file by calling .flush()
210
209
                    self._index_file.abort()
211
210
                self._index_file = None
212
211
            self._lock_mode = None