update command cannot take a revision number
Bug #45719 reported by
Nicholas Allen
This bug affects 14 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
High
|
Martin Pool | ||
2.1 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
bzr update cannot take a revision number so that I can update my working tree to a particular revision. It will only update to the latest revision. This is useful if you commit something and then want to go back to a previous revision (e.g. to check if a bug exists there or not). You could do a fresh checkout into a different directory but that is not very convenient. bzr should play back the revision history in reverse in order to update to a previous revision. This way only modified files are touched and things like make will only rebuild the modified files.
Related branches
lp:~jameinel/bzr/update-r
(Merged)
lp:~mhammond/bzr/update-r
Rejected
for merging
into
lp:~bzr/bzr/trunk-old
- John A Meinel: Needs Information
- Diff: 332 lines (has conflicts)
lp:~mbp/bzr/45719-update-r
- John A Meinel: Approve
-
Diff: 361 lines (+176/-37)5 files modifiedNEWS (+13/-5)
bzrlib/builtins.py (+41/-15)
bzrlib/tests/blackbox/test_update.py (+82/-6)
bzrlib/tests/per_workingtree/test_workingtree.py (+14/-0)
bzrlib/workingtree.py (+26/-11)
Changed in bzr: | |
assignee: | Matthieu Moy (matthieu-moy) → Martin Pool (mbp) |
Changed in bzr: | |
status: | In Progress → Fix Released |
milestone: | none → 2.1.0rc1 |
To post a comment you must log in.
Nicholas Allen wrote:
> Public bug reported:
>
> bzr update cannot take a revision number so that I can update my working
> tree to a particular revision. It will only update to the latest
> revision. This is useful if you commit something and then want to go
> back to a previous revision (e.g. to check if a bug exists there or
> not). You could do a fresh checkout into a different directory but that
> is not very convenient. bzr should play back the revision history in
> reverse in order to update to a previous revision. This way only
> modified files are touched and things like make will only rebuild the
> modified files.
>
> ** Affects: bzr (upstream)
> Severity: Normal
> Priority: (none set)
> Status: Unconfirmed
>
You can just use 'bzr revert -r revno' or 'bzr uncommit -r revno' if you
are going back in history.
John
=:->