Edgewall Software

Opened 15 years ago

Last modified 8 years ago

#6473 new enhancement

Negative revisions for changeset

Reported by: tgmayfield@… Owned by:
Priority: low Milestone: unscheduled
Component: version control/changeset view Version: devel
Severity: minor Keywords: consider
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:


We use a continuous integration server that tags successful builds, so the last revision against trunk is generally useless for seeing what actually changed. A tiny change, and we can now view revisions using a negative counter, e.g., http://ourserver.com/trac/Project/changeset/-1 now brings up r1393 if r1394 was current.

Index: svn_fs.py
--- svn_fs.py   (revision 6308)
+++ svn_fs.py   (working copy)
@@ -431,6 +431,8 @@
                 rev = int(rev)
+                if rev < 0:
+                    return rev + self.youngest_rev
                 if rev <= self.youngest_rev:
                     return rev
             except (ValueError, TypeError):

Attachments (0)

Change History (4)

comment:1 by tgmayfield@…, 15 years ago

Type: defectenhancement

Oops. Fixed ticket type.

comment:2 by Christian Boos, 15 years ago

Keywords: consider added
Milestone: 1.0

Eventually. In the same vein, as we're already supporting head, there are also the git-like shortcuts: head^, head^^, head~3.

See also #6009.

comment:3 by Christian Boos, 13 years ago

Milestone: 1.0unscheduled

Milestone 1.0 deleted

comment:4 by Ryan J Ollos, 8 years ago

Owner: Christian Boos removed

Modify Ticket

Change Properties
Set your email in Preferences
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.