/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/repofmt/weaverepo.py

  • Committer: Andrew Bennetts
  • Date: 2007-10-12 05:26:46 UTC
  • mfrom: (2904 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2906.
  • Revision ID: andrew.bennetts@canonical.com-20071012052646-wl95idld3ijjy714
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
                           timezone=None, committer=None, revprops=None,
121
121
                           revision_id=None):
122
122
        self._check_ascii_revisionid(revision_id, self.get_commit_builder)
123
 
        revision_id = osutils.safe_revision_id(revision_id)
124
123
        result = WeaveCommitBuilder(self, parents, config, timestamp, timezone,
125
124
                              committer, revprops, revision_id)
126
125
        self.start_write_group()
156
155
        # special case NULL_REVISION
157
156
        if revision_id == _mod_revision.NULL_REVISION:
158
157
            return {}
159
 
        revision_id = osutils.safe_revision_id(revision_id)
160
158
        a_weave = self.get_inventory_weave()
161
159
        all_revisions = self._eliminate_revisions_not_present(
162
160
                                a_weave.versions())
248
246
                           timezone=None, committer=None, revprops=None,
249
247
                           revision_id=None):
250
248
        self._check_ascii_revisionid(revision_id, self.get_commit_builder)
251
 
        revision_id = osutils.safe_revision_id(revision_id)
252
249
        result = WeaveCommitBuilder(self, parents, config, timestamp, timezone,
253
250
                              committer, revprops, revision_id)
254
251
        self.start_write_group()
258
255
    def get_revision(self, revision_id):
259
256
        """Return the Revision object for a named revision"""
260
257
        # TODO: jam 20070210 get_revision_reconcile should do this for us
261
 
        revision_id = osutils.safe_revision_id(revision_id)
262
258
        r = self.get_revision_reconcile(revision_id)
263
259
        # weave corruption can lead to absent revision markers that should be
264
260
        # present.
286
282
        # special case NULL_REVISION
287
283
        if revision_id == _mod_revision.NULL_REVISION:
288
284
            return {}
289
 
        revision_id = osutils.safe_revision_id(revision_id)
290
285
        a_weave = self.get_inventory_weave()
291
286
        all_revisions = self._eliminate_revisions_not_present(
292
287
                                a_weave.versions())