[Updated] D11956: exchange: add fast path for subrepo check on push

Alphare (Raphaël Gomès) phabricator at mercurial-scm.org
Tue Jan 4 16:58:33 UTC 2022


This revision now requires changes to proceed.
Alphare added inline comments.
Alphare requested changes to this revision.

INLINE COMMENTS

> joerg.sonnenberger wrote in exchange.py:533
> The problem here is remotefilelog, which has a custom hag for .hgtags and otherwise throws a runtime error. So no, I don't think there is a more specific way without changing the implementation.

Can't we either change the exception to be more fine-grained in remotefilelog (and still inherit from RuntimeError to not break anything) or detect a remotefilelog repo and early return? I'm really not comfortable catching this wide.

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: Alphare, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220104/e5246a6d/attachment-0002.html>


More information about the Mercurial-patches mailing list