D8265: git: key off `git` in .hg/requirements rather than separate file
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Sun Mar 8 05:12:41 UTC 2020
mharbison72 added inline comments.
INLINE COMMENTS
> __init__.py:104
> + reqs = {l.strip() for l in f}
> + if b'git' in reqs and os.path.exists(os.path.join(storebasepath, b'..', b'.git')):
> return gitstore(storebasepath, vfstype)
Shouldn't it be an error if `git` is in requirements, but `.git` doesn't exist? Or is there something in the original function that will raise an error in this case?
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8265/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8265
To: durin42, #hg-reviewers
Cc: mharbison72, mercurial-devel
More information about the Mercurial-devel
mailing list