~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/changeset/gen_changeset.py

  • Committer: Aaron Bentley
  • Date: 2006-05-12 03:33:24 UTC
  • mto: (1185.82.108 w-changeset)
  • mto: This revision was merged to the branch mainline in revision 1738.
  • Revision ID: aaron.bentley@utoronto.ca-20060512033324-5947a3f509a1cb9d
Disabled validate_revisions (needs info it doesn't have), updated API to repos

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
import bzrlib
9
9
import os
10
10
 
 
11
from bzrlib.changeset.common import testament_sha1
11
12
from bzrlib.inventory import ROOT_ID
12
13
from bzrlib.errors import BzrCommandError, NotAncestor
13
14
from bzrlib.trace import warning, mutter
14
15
from collections import deque
15
16
from bzrlib.revision import (common_ancestor, MultipleRevisionSources,
16
17
                             get_intervening_revisions, NULL_REVISION)
17
 
from bzrlib.testament import Testament
18
18
from bzrlib.diff import internal_diff, compare_trees
19
19
 
20
20
class MetaInfoHeader(object):
316
316
            full_rename=include_full_diff, full_remove=include_full_diff,
317
317
            message=message)
318
318
    meta.write_meta_info(to_file)
319
 
 
320
 
def testament_sha1(repository, revision_id):
321
 
    text = Testament.from_revision(repository, revision_id).as_short_text()
322
 
    s = sha(text)
323
 
    return s.hexdigest()
324