669
669
raise errors.BzrCommandError(
670
670
'bzr pull --revision takes one value.')
673
old_rh = branch_to.revision_history()
674
if tree_to is not None:
675
change_reporter = delta._ChangeReporter(
676
unversioned_filter=tree_to.is_ignored)
677
result = tree_to.pull(branch_from, overwrite, revision_id,
679
possible_transports=possible_transports)
681
result = branch_to.pull(branch_from, overwrite, revision_id)
672
branch_to.lock_write()
674
if tree_to is not None:
675
change_reporter = delta._ChangeReporter(
676
unversioned_filter=tree_to.is_ignored)
677
result = tree_to.pull(branch_from, overwrite, revision_id,
679
possible_transports=possible_transports)
681
result = branch_to.pull(branch_from, overwrite, revision_id)
683
result.report(self.outf)
685
new_rh = branch_to.revision_history()
686
log.show_changed_revisions(branch_to, old_rh, new_rh,
683
result.report(self.outf)
684
if verbose and result.old_revid != result.new_revid:
686
branch_to.repository.iter_reverse_revision_history(
689
new_rh = branch_to.revision_history()
690
log.show_changed_revisions(branch_to, old_rh, new_rh,
690
696
class cmd_push(Command):
2719
2725
"""Show version of bzr."""
2721
2727
encoding_type = 'replace'
2729
Option("short", help="Print just the version number."),
2723
2732
@display_command
2733
def run(self, short=False):
2725
2734
from bzrlib.version import show_version
2726
show_version(to_file=self.outf)
2736
self.outf.write(bzrlib.version_string + '\n')
2738
show_version(to_file=self.outf)
2729
2741
class cmd_rocks(Command):
3659
3671
specified revision. For example, "bzr uncommit -r 15" will leave the
3660
3672
branch at revision 15.
3662
In the future, uncommit will create a revision bundle, which can then
3674
Uncommit leaves the working tree ready for a new commit. The only change
3675
it may make is to restore any pending merges that were present before
3666
3679
# TODO: jam 20060108 Add an option to allow uncommit to remove