##// END OF EJS Templates
smarter calculation of showed associated changeset in file source view...
smarter calculation of showed associated changeset in file source view - before rhodecode showed TIP changeset when initially displaing file source as description of associated commit this can be misleading. Now smart calculate last commit of a file, and show specific commits when switching from history view

File last commit:

r2007:324ac367 beta
r2930:a01c5994 beta
Show More
compat.py
13 lines | 266 B | text/x-python | PythonLexer
"""
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')