Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes Issue #4

When default_repository_path is not defined in trac config, by
default it should get an empty string.
  • Loading branch information...
commit d401037b05b18f93ade6b90496463cdf3a8c2e31 1 parent 6b5732d
@maraujop authored
Showing with 6 additions and 2 deletions.
  1. +4 −0 .gitignore
  2. +2 −2 mercurialchangeset/admin.py
View
4 .gitignore
@@ -0,0 +1,4 @@
+*.pyc
+/build
+/dist
+/TracMercurialChangesetPlugin.egg-info
View
4 mercurialchangeset/admin.py
@@ -77,7 +77,7 @@ def get_repository_id(self, repository):
"""
Returns the repository id inside Trac. This is needed to support
multi-repository since v0.12. However, in lower versions of Trac, by simply
- using 'default' as repository name it should work just fine :)
+ using 'default' as repository name, it should work just fine :)
"""
if (repository == "default"):
return 1
@@ -86,7 +86,7 @@ def get_repository_id(self, repository):
if os.path.isdir(repository):
# The default repository is not in the repository table
# We need to check it apart, against the Trac's config file
- default_repository_path = self.config.get("trac", "repository_dir", False)
+ default_repository_path = self.config.get("trac", "repository_dir", "")
contains = re.compile(repository)
if contains.match(default_repository_path):
return 1
Please sign in to comment.
Something went wrong with that request. Please try again.