Edgewall Software

Ticket #6473 (new enhancement)

Opened 10 months ago

Last modified 10 months ago

Negative revisions for changeset

Reported by: tgmayfield@… Owned by: cboos
Priority: low Milestone: 1.0
Component: version control/changeset view Version: devel
Severity: minor Keywords: consider
Cc:

Description

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 @@
         else:
             try:
                 rev = int(rev)
+                if rev < 0:
+                    return rev + self.youngest_rev
                 if rev <= self.youngest_rev:
                     return rev
             except (ValueError, TypeError):

Attachments

Change History

Changed 10 months ago by tgmayfield@…

  • type changed from defect to enhancement

Oops. Fixed ticket type.

Changed 10 months ago by cboos

  • keywords consider added
  • milestone set to 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.

Add/Change #6473 (Negative revisions for changeset)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from cboos. Next status will be 'new'
The owner will change from cboos to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.