56
56
send_changeset(b, revision, to, message, file)
59
class cmd_changeset(Command):
60
"""Generate a bundled up changeset.
59
class cmd_bundle_revisions(Command):
60
"""Generate a revision bundle.
62
This changeset contains all of the meta-information of a
62
This bundle contains all of the meta-information of a
63
63
diff, rather than just containing the patch information.
65
65
You can apply it to another tree using 'bzr merge'.
68
- Changeset for the last commit
70
- Changeset to apply the current tree into BASE
72
- Changeset for revision A
73
bzr cset --revision A..B
74
- Changeset to transform A into B
75
bzr cset --revision A..B BASE
76
- Changeset to transform revision A of BASE into revision B
68
- Bundle for the last commit
70
- Bundle to apply the current tree into BASE
71
bzr bundle --revision A
72
- Bundle for revision A
73
bzr bundle --revision A..B
74
- Bundle to transform A into B
75
bzr bundle --revision A..B BASE
76
- Bundle to transform revision A of BASE into revision B
79
79
takes_options = ['verbose', 'revision']
80
80
takes_args = ['base?']
83
83
def run(self, base=None, revision=None):
84
84
from bzrlib import user_encoding
85
from bzrlib.changeset.serializer import write_changeset
85
from bzrlib.bundle.serializer import write_bundle
132
132
target_branch.repository.fetch(base_branch.repository,
133
133
revision_id=base_revision)
135
write_changeset(target_branch.repository, target_revision,
136
base_revision, sys.stdout)
135
write_bundle(target_branch.repository, target_revision, base_revision,
139
139
class cmd_verify_changeset(Command):