~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store/versioned/__init__.py

  • Committer: Matt Nordhoff
  • Date: 2009-04-04 02:50:01 UTC
  • mfrom: (4253 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4256.
  • Revision ID: mnordhoff@mattnordhoff.com-20090404025001-z1403k0tatmc8l91
Merge bzr.dev, fixing conflicts.

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.
133
133
    def _make_new_versionedfile(self, file_id, transaction,
134
134
        known_missing=False, _filename=None):
135
135
        """Make a new versioned file.
136
 
        
 
136
 
137
137
        :param _filename: filename that would be returned from self.filename for
138
138
        file_id. This is used to reduce duplicate filename calculations when
139
139
        using 'get_weave_or_empty'. FOR INTERNAL USE ONLY.
162
162
 
163
163
    def get_weave_or_empty(self, file_id, transaction):
164
164
        """Return a weave, or an empty one if it doesn't exist."""
165
 
        # This is typically used from 'commit' and 'fetch/push/pull' where 
 
165
        # This is typically used from 'commit' and 'fetch/push/pull' where
166
166
        # we scan across many versioned files once. As such the small overhead
167
167
        # of calculating the filename before doing a cache lookup is more than
168
168
        # compensated for by not calculating the filename when making new
208
208
    def copy_multi(self, from_store, file_ids, pb=None, from_transaction=None,
209
209
                   to_transaction=None):
210
210
        """Copy all the versions for multiple file_ids from from_store.
211
 
        
 
211
 
212
212
        :param from_transaction: required current transaction in from_store.
213
213
        """
214
214
        from bzrlib.transactions import PassThroughTransaction