Changeset - 22da5c75e660
[Not reviewed]
default
0 1 0
Mads Kiilerich - 11 years ago 2014-07-18 17:01:37
madski@unity3d.com
vcs: convert unicode revision strings to ascii before passing to Mercurial
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/vcs/backends/hg/repository.py
Show inline comments
 
@@ -25,7 +25,7 @@ from kallithea.lib.vcs.exceptions import
 
    RepositoryError, VCSError, TagAlreadyExistError, TagDoesNotExistError
 
)
 
from kallithea.lib.vcs.utils import (
 
    author_email, author_name, date_fromtimestamp, makedate, safe_unicode
 
    author_email, author_name, date_fromtimestamp, makedate, safe_unicode, safe_str,
 
)
 
from kallithea.lib.vcs.utils.lazy import LazyProperty
 
from kallithea.lib.vcs.utils.ordered_dict import OrderedDict
 
@@ -429,6 +429,8 @@ class MercurialRepository(BaseRepository
 

	
 
        :param revision: str or int or None
 
        """
 
        if isinstance(revision, unicode):
 
            revision = safe_str(revision)
 

	
 
        if self._empty:
 
            raise EmptyRepositoryError("There are no changesets yet")
0 comments (0 inline, 0 general)