Modify ↓
Opened 18 years ago
Last modified 10 years ago
#6473 new enhancement
Negative revisions for changeset
| Reported by: | 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: | |||
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 (0)
Change History (4)
comment:1 by , 18 years ago
| Type: | defect → enhancement |
|---|
comment:2 by , 18 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:4 by , 10 years ago
| Owner: | removed |
|---|
Note:
See TracTickets
for help on using tickets.



Oops. Fixed ticket type.