/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/store/versioned/__init__.py

  • Committer: Martin von Gagern
  • Date: 2010-04-20 08:47:38 UTC
  • mfrom: (5167 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5195.
  • Revision ID: martin.vgagern@gmx.net-20100420084738-ygymnqmdllzrhpfn
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
 
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
# XXX: Some consideration of the problems that might occur if there are
18
18
# files whose id differs only in case.  That should probably be forbidden.
21
21
import errno
22
22
import os
23
23
from cStringIO import StringIO
24
 
import urllib
25
24
from warnings import warn
26
25
 
27
26
from bzrlib import (
134
133
    def _make_new_versionedfile(self, file_id, transaction,
135
134
        known_missing=False, _filename=None):
136
135
        """Make a new versioned file.
137
 
        
 
136
 
138
137
        :param _filename: filename that would be returned from self.filename for
139
138
        file_id. This is used to reduce duplicate filename calculations when
140
139
        using 'get_weave_or_empty'. FOR INTERNAL USE ONLY.
163
162
 
164
163
    def get_weave_or_empty(self, file_id, transaction):
165
164
        """Return a weave, or an empty one if it doesn't exist."""
166
 
        # This is typically used from 'commit' and 'fetch/push/pull' where 
 
165
        # This is typically used from 'commit' and 'fetch/push/pull' where
167
166
        # we scan across many versioned files once. As such the small overhead
168
167
        # of calculating the filename before doing a cache lookup is more than
169
168
        # compensated for by not calculating the filename when making new
209
208
    def copy_multi(self, from_store, file_ids, pb=None, from_transaction=None,
210
209
                   to_transaction=None):
211
210
        """Copy all the versions for multiple file_ids from from_store.
212
 
        
 
211
 
213
212
        :param from_transaction: required current transaction in from_store.
214
213
        """
215
214
        from bzrlib.transactions import PassThroughTransaction