hgext3rd/topic/common.py
author Joerg Sonnenberger <joerg@bec.de>
Thu, 09 Apr 2020 19:51:03 +0200
changeset 5318 a799f5d228f1
parent 4531 1d1f8f56daac
permissions -rw-r--r--
tests: check for file existance in a portable way The precise output of ls is highly OS specific, so just use the simpler test command.

# Copyright 2019 Pierre-Yves David <pierre-yves.david@octobus.net>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.

def hastopicext(repo):
    """True if the repo use the topic extension"""
    return getattr(repo, 'hastopicext', False)