Download subdirectory from remote repository
anatoly techtonik
techtonik at gmail.com
Tue Dec 4 22:49:53 UTC 2012
On Wed, Dec 5, 2012 at 1:42 AM, anatoly techtonik <techtonik at gmail.com>wrote:
> 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".
>>
>
> I misunderstood your "request" context. Nevermind last letter. Throttling
> is definitely something that should be in every internet facing server. I
> guess all major HG hostings implement it this way or the other.
>
And it is not necessary about archives of subdirectories. Just download of
a raw file without compression is also a viable need.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20121205/fa02fd0b/attachment-0002.html>
More information about the Mercurial
mailing list