~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store/text.py

  • Committer: Robert Collins
  • Date: 2005-10-17 00:46:10 UTC
  • mto: This revision was merged to the branch mainline in revision 1459.
  • Revision ID: robertc@lifelesslap.robertcollins.net-20051017004610-6130019f89a92d04
teach iter about suffixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
do any sort of delta compression.
22
22
"""
23
23
 
24
 
import os, tempfile
25
 
 
26
24
import bzrlib.store
27
25
from bzrlib.store import hash_prefix
28
26
from bzrlib.trace import mutter
47
45
    def _get(self, fn):
48
46
        return self._transport.get(fn)
49
47
 
50
 
    def __iter__(self):
51
 
        for relpath in self._transport.iter_files_recursive():
52
 
            yield os.path.basename(relpath)
53
 
 
54
48
 
55
49
def ScratchTextStore():
56
50
    return TextStore(ScratchTransport())