This is an archive of the discontinued Mercurial Phabricator instance.

Add narrow capabilities for local repos, not just remote peers
ClosedPublic

Authored by charlesetc on Apr 9 2021, 5:47 PM.

Details

Summary

This fixes the bug where running hg clone --narrow ./local-repo
fails with

abort: server does not support narrow clones

even when the server has narrow enabled.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

charlesetc created this revision.Apr 9 2021, 5:47 PM

Hello, I'm not sure if this change is idiomatic or in-keeping with the abstractions at play. I'm happy to rework it if there turns out to be a better way to implement. Thanks!

durin42 accepted this revision.Apr 12 2021, 2:51 PM

Thanks! This needed some tweaking on the commit message to line up with our format (which is checked by the test suite, but I've edited in-flight and am pushing now.)

This revision is now accepted and ready to land.Apr 12 2021, 2:51 PM