Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHG4b843cb6eb8c: narrow: remove old version-checking logic and declare internal
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
indygreg |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | hgext/narrow/__init__.py (15 lines) |
Status | Author | Revision | |
---|---|---|---|
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 |
# __init__.py - narrowhg extension | # __init__.py - narrowhg extension | ||||
# | # | ||||
# Copyright 2017 Google, Inc. | # Copyright 2017 Google, Inc. | ||||
# | # | ||||
# This software may be used and distributed according to the terms of the | # This software may be used and distributed according to the terms of the | ||||
# GNU General Public License version 2 or any later version. | # GNU General Public License version 2 or any later version. | ||||
'''create clones which fetch history data for subset of files (EXPERIMENTAL)''' | '''create clones which fetch history data for subset of files (EXPERIMENTAL)''' | ||||
from __future__ import absolute_import | from __future__ import absolute_import | ||||
from mercurial import __version__ | # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for | ||||
if __version__.version < '3.7': | # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should | ||||
raise ImportError( | # be specifying the version(s) of Mercurial they are tested with, or | ||||
'narrowhg requires mercurial 3.7 or newer') | # leave the attribute unspecified. | ||||
testedwith = 'ships-with-hg-core' | |||||
try: | |||||
from .__versionnum__ import version | |||||
__version__ = version | |||||
except ImportError: | |||||
pass | |||||
from mercurial import ( | from mercurial import ( | ||||
extensions, | extensions, | ||||
hg, | hg, | ||||
localrepo, | localrepo, | ||||
registrar, | registrar, | ||||
verify as verifymod, | verify as verifymod, | ||||
) | ) |