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

  • Committer: Richard Wilbur
  • Date: 2016-02-04 19:07:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6618.
  • Revision ID: richard.wilbur@gmail.com-20160204190728-p0zvfii6zase0fw7
Update COPYING.txt from the original http://www.gnu.org/licenses/gpl-2.0.txt  (Only differences were in whitespace.)  Thanks to Petr Stodulka for pointing out the discrepancy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
the object is an expensive one for obtaining.
37
37
"""
38
38
 
 
39
from __future__ import absolute_import
 
40
 
39
41
import sys
40
42
 
41
 
from . import errors as errors
42
 
from .identitymap import IdentityMap, NullIdentityMap
43
 
from .trace import mutter
 
43
import bzrlib.errors as errors
 
44
from bzrlib.identitymap import IdentityMap, NullIdentityMap
 
45
from bzrlib.trace import mutter
44
46
 
45
47
 
46
48
class ReadOnlyTransaction(object):
99
101
            # _clean_objects
100
102
            # _clean_queue
101
103
            # 1 missing ?
102
 
            if (sys.getrefcount(self._clean_queue[offset]) <= 7
103
 
                    and not self._clean_queue[offset] in self._precious_objects):
 
104
            if (sys.getrefcount(self._clean_queue[offset]) <= 7 and
 
105
                not self._clean_queue[offset] in self._precious_objects):
104
106
                removed = self._clean_queue[offset]
105
107
                self._clean_objects.remove(removed)
106
108
                del self._clean_queue[offset]