switch -b silently ignores revision spec

Bug #1028566 reported by Aaron Bentley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

When creating a new branch with switch, -r should either be an error, or it should indicate the revno in the current branch to base the new branch on. Instead, it creates a new branch at the last_revision of the current branch, but changes the working tree to the specified revision:

$ bzr switch -b -r 15666 restore-queue-test
Updated to revision 15675.
Switched to branch: /home/abentley/launchpad/colo/.bzr/branches/restore-queue-test/
$ bzr revno
15675

However, the contents match -r 15666:
$ bzr diff -r 15666
$

Martin Packman (gz)
Changed in bzr:
importance: Undecided → Medium
status: New → Confirmed
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.