/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 __init__.py

  • Committer: John Arbash Meinel
  • Date: 2005-06-29 15:54:52 UTC
  • mto: (0.5.85) (1185.82.1 bzr-w-changeset)
  • mto: This revision was merged to the branch mainline in revision 1738.
  • Revision ID: john@arbash-meinel.com-20050629155452-18f02584db656533
Made read_changeset able to spit out 'Revision' entities.

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
 
92
92
    def run(self, filename=None):
93
93
        import sys, read_changeset
 
94
        from bzrlib.xml import pack_xml
94
95
        if filename is None or filename == '-':
95
96
            f = sys.stdin
96
97
        else:
100
101
        print cset_info
101
102
        cset = cset_info.get_changeset()
102
103
        print cset.entries
 
104
        for rev_info in cset_info.revisions:
 
105
            rev = rev_info.as_revision()
 
106
            pack_xml(rev, sys.stdout)
103
107
 
104
108
class cmd_apply_changeset(bzrlib.commands.Command):
105
109
    """Read in the given changeset, and apply it to the