[Changed Subscribers] D11956: exchange: add fast path for subrepo check on push
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Wed Jan 5 15:46:16 UTC 2022
mharbison72 added inline comments.
INLINE COMMENTS
> exchange.py:531
> + try:
> + if not len(repo.file(b'.hgsub')) or not len(repo.file(b'.hgsubstate')):
> + return
I assume this checks if the file exists anywhere in history (since it doesn't mention a rev), to handle the case of the files being removed? (I don't see the file() function on the localrepository class, so I'm not sure what this is doing)
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11956/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11956
To: joerg.sonnenberger, #hg-reviewers, Alphare
Cc: mharbison72, Alphare, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220105/164b2fe6/attachment-0002.html>
More information about the Mercurial-patches
mailing list