Skip to content

Commit

Permalink
tracstats: additional version check.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 committed Oct 13, 2012
1 parent ff2a881 commit b423c7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tracstats/web_ui.py
Expand Up @@ -33,14 +33,14 @@
# repositories. Where the "rev" field was previously unique,
# the "(repos,rev)" fields are now unique. Doing it this way
# is a big performance boost.
if trac.__version__.startswith('0.12'):
if any(trac.__version__.startswith(s) for s in ('0.12','0.13','1.')):
USING = "on r.repos = nc.repos and r.rev = nc.rev"
else:
USING = "using (rev)"

# In version 0.12, support for multiple repositories was
# added. We use the reponame to generate proper changeset links.
if trac.__version__.startswith('0.12'):
if any(trac.__version__.startswith(s) for s in ('0.12','0.13','1.')):
REPOS = 'r.repos'
else:
REPOS = "'' as repos"
Expand Down

0 comments on commit b423c7b

Please sign in to comment.