This is an archive of the discontinued Mercurial Phabricator instance.

narrow: add a --narrowspec flag to clone command
ClosedPublic

Authored by pulkit on Aug 8 2018, 7:09 AM.

Details

Summary

This patch adds a --narrowspec flag to hg clone command in narrow extension
which can be used to read a file and parse narrowspecs from it and use it while
cloning a repository.

The --narrowspec flag assumes that the user wanted to narrow the clone.

Tests are added both for ellipsis and non-ellipsis mode.

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

pulkit created this revision.Aug 8 2018, 7:09 AM
durin42 accepted this revision as: durin42.

I'm +1 on this, but I'd like someone else to chime in. @spectral how do you feel about this? It's at least somewhat related to functionality we've added via aliases, right?

spectral accepted this revision.Aug 9 2018, 8:58 PM

I'm +1 on this, but I'd like someone else to chime in. @spectral how do you feel about this? It's at least somewhat related to functionality we've added via aliases, right?

I've wanted it a few times; I don't think we have any aliases to do it though, so I'm +1 on it as well.

ping for review.

This revision was automatically updated to reflect the committed changes.