Commits

Peter Suter  committed dcc9c16

Allow uppercase letters in repository names.

  • Participants
  • Parent commits fcad49f
  • Branches psuter/allow-uppercase-letters-in-repository-names

Comments (0)

Files changed (1)

File hgdirmanager/hgdirmanager.py

 from trac.versioncontrol.api import IRepositoryProvider, RepositoryManager
 
 import os, os.path
-from string import ascii_lowercase, digits
+from string import ascii_letters, digits
 
 class HgDirProvider(Component):
     """Provides Mercurial repositories from a directory."""
             reponame = req.args.get('field_name')
             if reponame == '':
                 add_warning(req, _('The name of the new repository must be non-empty.'))
-            elif any(ch != '_' and ch not in digits and ch not in ascii_lowercase for ch in reponame):
-                add_warning(req, _('Repository names may only contain lowercase letters, digits and underscores.'))
+            elif any(ch != '_' and ch not in digits and ch not in ascii_letters for ch in reponame):
+                add_warning(req, _('Repository names may only contain letters, digits and underscores.'))
             elif reponame[0] == '_':
                 add_warning(req, _('Repository names may not begin with underscores.'))
             elif reponame and '/' not in reponame: