Ticket #3745 (closed enhancement: fixed)
TracLinks "''source''" could not use line number only without fist giving a specific revision
| Reported by: | bryan@… | Owned by: | cboos |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.10 |
| Component: | version control | Version: | 0.10b1 |
| Severity: | minor | Keywords: | TracLinks |
| Cc: |
Description
Specifying line number without revision might not be reasonable, but from time to time, I found it annoying to specify the revision when I'm targeting to the same tag directory.
I think having such flexibility might be a good thing. For example, this makes "source:/path/name@#L10" work.
--- trac/trunk/lib/python2.4/site-packages/trac/versioncontrol/web_ui/util.py (revision 34)
+++ trac/trunk/lib/python2.4/site-packages/trac/versioncontrol/web_ui/util.py (revision 35)
@@ -85,7 +85,7 @@
})
return links
-rev_re = re.compile(r"([^@#:]*)[@#:]([^#]+)(?:#L(\d+))?")
+rev_re = re.compile(r"([^@#:]*)[@#:]([^#]+)?(?:#L(\d+))?")
def get_path_rev_line(path):
rev = None
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


