Download subdirectory from remote repository

anatoly techtonik techtonik at gmail.com
Tue Dec 4 22:40:41 UTC 2012


On Wed, Dec 5, 2012 at 12:45 AM, Matt Mackall <mpm at selenic.com> wrote:

> On Tue, 2012-12-04 at 17:42 +0100, Pierre-Yves David wrote:
> > On Tue, Dec 04, 2012 at 07:39:40PM +0300, anatoly techtonik wrote:
> > > On Tue, Dec 4, 2012 at 7:10 PM, Bryan O'Sullivan <bos at serpentine.com>
> wrote:
> > >
> > > > On Mon, Dec 3, 2012 at 10:24 PM, anatoly techtonik <
> techtonik at gmail.com>wrote:
> > > >
> > > >> Instead I just want to download subdirectory without any history,
> tagged
> > > >> or not. Is there a way to do this in HG?
> > > >>
> > > >
> > > > No. The "hg archive" command supports this, but the web interface
> doesn't.
> > > >
> > >
> > > Is there any chance to get it? It is useful to fetch dependencies for
> > > scripting languages directly from the repository.
> >
> > We would probably take a patches doing this.
> >
> > What does other people feel about it ?
>
> IIRC, the last time patches to grab archives of subdirectories were
> proposed (~4 years ago?), it was rejected for failing to fit into our
> URL schema cleanly.
>
> Today, I'd probably insist that any such feature also come with a
> request-rate limiting mechanism. "It is useful to fetch dependencies"
> sounds too much like "We plan on abusing this with inefficient
> automation".
>

It is just the convenient way things were working with Subversion. If HG
doesn't allow subtree checkouts with history - it should at least allow to
grab the code without it. Some repositories are rather huge, because
somebody committed some binaries by mistake long ago and cloning them takes
a lot of time.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20121205/5170d9b9/attachment-0002.html>


More information about the Mercurial mailing list