~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Aaron Bentley
  • Date: 2006-08-08 17:53:22 UTC
  • mto: (1910.2.43 format-bumps)
  • mto: This revision was merged to the branch mainline in revision 1922.
  • Revision ID: abentley@panoramicfeedback.com-20060808175322-4b34e7b73ca235d1
Support old CommitBuilders

Show diffs side-by-side

added added

removed removed

Lines of Context:
256
256
        :param revprops: Optional dictionary of revision properties.
257
257
        :param revision_id: Optional revision id.
258
258
        """
259
 
        return CommitBuilder(self, parents, config, timestamp, timezone,
260
 
                             committer, revprops, revision_id)
 
259
        return NewCommitBuilder(self, parents, config, timestamp, timezone,
 
260
                                committer, revprops, revision_id)
261
261
 
262
262
    def unlock(self):
263
263
        self.control_files.unlock()
1953
1953
    This allows describing a tree to be committed without needing to 
1954
1954
    know the internals of the format of the repository.
1955
1955
    """
 
1956
    
 
1957
    record_root_entry = False
1956
1958
    def __init__(self, repository, parents, config, timestamp=None, 
1957
1959
                 timezone=None, committer=None, revprops=None, 
1958
1960
                 revision_id=None):
2138
2140
        versionedfile.clear_cache()
2139
2141
 
2140
2142
 
 
2143
class NewCommitBuilder(CommitBuilder):
 
2144
    """Temporary class so old CommitBuilders are detected properly
 
2145
    
 
2146
    Note: CommitBuilder works whether or not root entry is recorded.
 
2147
    """
 
2148
 
 
2149
    record_root_entry = True
 
2150
 
 
2151
 
2141
2152
_unescape_map = {
2142
2153
    'apos':"'",
2143
2154
    'quot':'"',