~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store.py

  • Committer: aaron.bentley at utoronto
  • Date: 2005-08-26 02:27:30 UTC
  • mto: (1185.3.4)
  • mto: This revision was merged to the branch mainline in revision 1178.
  • Revision ID: aaron.bentley@utoronto.ca-20050826022730-72ac54a74b855b4a
Added test of double-add in ImmutableStore

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
from stat import ST_SIZE
26
26
from StringIO import StringIO
27
27
from trace import mutter
 
28
from bzrlib.errors import BzrError
28
29
 
29
30
######################################################################
30
31
# stores
90
91
            
91
92
        p = self._path(fileid)
92
93
        if os.access(p, os.F_OK) or os.access(p + '.gz', os.F_OK):
93
 
            from bzrlib.errors import bailout
94
94
            raise BzrError("store %r already contains id %r" % (self._basedir, fileid))
95
95
 
96
96
        fn = p