Documentation should clarify that revert only changes files, not last-revision

Bug #33973 reported by Sivan Greenberg
10
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned
Breezy
Triaged
Low
Unassigned

Bug Description

sivan@ubuntu:~/my/upb-coroutines-pexpect_with_pre-build_function/utils-and-GUI$ bzr revno
184
sivan@ubuntu:~/my/upb-coroutines-pexpect_with_pre-build_function/utils-and-GUI$ bzr revert -r 173
sivan@ubuntu:~/my/upb-coroutines-pexpect_with_pre-build_function/utils-and-GUI$ bzr revno
184

Now, as the revision is really 173 (by checking the source files) bzr reports 183 (the latest).

Rather confusing and makes you think bzr is doing something wrong.

Tags: doc revert
Revision history for this message
Sivan Greenberg (sivan) wrote :

using the dapper package, version 0.7-2 .

Revision history for this message
Wouter van Heyst (larstiq) wrote : Re: [Bug 33973] bzr lies when reverting and asking for the revno.

On Tue, Mar 07, 2006 at 11:19:22AM -0000, Sivan Greenberg wrote:
> Public bug reported:
> https://launchpad.net/malone/bugs/33973
>
> Affects: bzr (upstream)
> Severity: Normal
> Priority: (none set)
> Status: Unconfirmed
>
> Description:
> sivan@ubuntu:~/my/upb-coroutines-pexpect_with_pre-build_function/utils-and-GUI$ bzr revno
> 184
> sivan@ubuntu:~/my/upb-coroutines-pexpect_with_pre-build_function/utils-and-GUI$ bzr revert -r 173
> sivan@ubuntu:~/my/upb-coroutines-pexpect_with_pre-build_function/utils-and-GUI$ bzr revno
> 184
>
>
> Now, as the revision is really 173 (by checking the source files) bzr reports 183 (the latest).
>
> Rather confusing and makes you think bzr is doing something wrong.

As Robert said on irc, revert only changes the working tree contents.
Showing the revno that is at if it differs from the branch seems to me
like a good improvement.

Wouter van Heyst

Revision history for this message
Robert Collins (lifeless) wrote : Re: bzr lies when reverting and asking for the revno.

this is a documentation and UI issue: revert is behaving as desired, but we should make it more clear to users what it is that its going to do. If users want to switch to an older revno in a tree, they should consider using either 'update -r revno' [possibly not supported yet], or uncommit [if that matches their intent]. We shoud guide them towards these actions.

Changed in bzr:
status: Unconfirmed → Confirmed
Jelmer Vernooij (jelmer)
tags: added: doc revert
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: removed: check-for-breezy
Changed in brz:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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