How does"hg clone --depth" work?

Pierre-Yves David pierre-yves.david at ens-lyon.org
Thu Nov 12 10:04:07 UTC 2020


On 11/11/20 9:19 PM, Jesus Cea wrote:
> I am using mercurial 5.5.2. Doing a "hg clone --depth 5" of a remote
> repository or a local clone, the entire history is apparently copied.

 > I can not find details of how it works or what I should configure to get
 > it working.

The --depth flag you are using is added by the narrow extension. An 
experimental extension from Google that requires server side support to 
be enabled). You probably do not want to rely on narrow.

In what context are you trying to use --depth and which underlying issue 
are you trying to solve by using it ?

Cheers,


-- 
Pierre-Yves David



More information about the Mercurial mailing list