~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/changeset/read_changeset.py

  • Committer: Aaron Bentley
  • Date: 2006-05-17 16:15:13 UTC
  • mto: (1185.82.108 w-changeset)
  • mto: This revision was merged to the branch mainline in revision 1738.
  • Revision ID: abentley@panoramicfeedback.com-20060517161513-55a87bb608a1583c
Cleanups

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
Read in a changeset output, and process it into a Changeset object.
4
4
"""
5
5
 
 
6
from cStringIO import StringIO
6
7
import os
7
8
import pprint
8
 
from cStringIO import StringIO
9
9
from sha import sha
10
10
 
11
 
from bzrlib.tree import Tree
12
 
from bzrlib.trace import mutter, warning
13
 
from bzrlib.testament import Testament
14
11
from bzrlib.errors import BzrError
15
 
from bzrlib.xml5 import serializer_v5
16
 
from bzrlib.osutils import sha_file, sha_string
17
 
from bzrlib.revision import Revision, NULL_REVISION
 
12
from bzrlib.changeset.common import (decode, get_header, header_str,
 
13
                                     testament_sha1)
18
14
from bzrlib.inventory import (Inventory, InventoryEntry,
19
15
                              InventoryDirectory, InventoryFile,
20
16
                              InventoryLink)
 
17
from bzrlib.osutils import sha_file, sha_string
 
18
from bzrlib.revision import Revision, NULL_REVISION
 
19
from bzrlib.testament import Testament
 
20
from bzrlib.trace import mutter, warning
 
21
from bzrlib.tree import Tree
 
22
from bzrlib.xml5 import serializer_v5
21
23
 
22
 
from bzrlib.changeset.common import (decode, get_header, header_str,
23
 
                                     testament_sha1)
24
24
 
25
25
class BadChangeset(Exception): pass
26
26
class MalformedHeader(BadChangeset): pass