def activebookmark(repo):
    if hasattr(repo, '_activebookmark'):
        return repo._activebookmark
    elif hasattr(bookmarks, 'readactive'):
        return bookmarks.readactive(repo)
    else:
        return bookmarks.readcurrent(repo)
Beispiel #2
0
def hg_readactive(repo):
    if hg_version() >= '3.7': 
        return _readactive(repo,repo._bookmarks) 
    elif hg_version() >= '3.5' and hg_version() < '3.7': 
        return readactive(repo) 
    else: 
        return readcurrent(repo) 
Beispiel #3
0
def activebookmark(repo):
    if hasattr(repo, "_activebookmark"):
        return repo._activebookmark
    elif hasattr(bookmarks, "readactive"):
        return bookmarks.readactive(repo)
    else:
        return bookmarks.readcurrent(repo)
Beispiel #4
0
def activebookmark(repo):
    if hasattr(repo, '_activebookmark'):
        return repo._activebookmark
    elif hasattr(bookmarks, 'readactive'):
        return bookmarks.readactive(repo)
    else:
        return bookmarks.readcurrent(repo)