Files @ 440fab755fa9
Branch filter:

Location: kallithea/rhodecode/lib/vcs/utils/compat.py

Dennis Brakhane
switch to branch: handle slashes in branch names

In git, having slashes in branch names are not uncommon.

We cannot use a branch name with slashes in the url, so in that case, we
use the changeset id instead like we already do for tags and bookmarks.

Fixes #654
"""
Various utilities to work with Python < 2.7.

Those utilities may be deleted once ``vcs`` stops support for older Python
versions.
"""
import sys


if sys.version_info >= (2, 7):
    unittest = __import__('unittest')
else:
    unittest = __import__('unittest2')