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

  • Committer: Gustav Hartvigsson
  • Date: 2021-01-09 21:36:27 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20210109213627-h1xwcutzy9m7a99b
Added 'Case Preserving Working Tree Use Cases' from Canonical Wiki

* Addod a page from the Canonical Bazaar wiki
  with information on the scmeatics of case
  perserving filesystems an a case insensitive
  filesystem works.
  
  * Needs re-work, but this will do as it is the
    same inforamoton as what was on the linked
    page in the currint documentation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
import sys
40
40
 
41
 
import bzrlib.errors as errors
42
 
from bzrlib.identitymap import IdentityMap, NullIdentityMap
43
 
from bzrlib.trace import mutter
 
41
from . import errors as errors
 
42
from .identitymap import IdentityMap, NullIdentityMap
 
43
from .trace import mutter
44
44
 
45
45
 
46
46
class ReadOnlyTransaction(object):
99
99
            # _clean_objects
100
100
            # _clean_queue
101
101
            # 1 missing ?
102
 
            if (sys.getrefcount(self._clean_queue[offset]) <= 7 and
103
 
                not self._clean_queue[offset] in self._precious_objects):
 
102
            if (sys.getrefcount(self._clean_queue[offset]) <= 7
 
103
                    and not self._clean_queue[offset] in self._precious_objects):
104
104
                removed = self._clean_queue[offset]
105
105
                self._clean_objects.remove(removed)
106
106
                del self._clean_queue[offset]