onrepos: non-recursive traversal?

Martin Geisler mg at lazybytes.net
Mon Apr 25 11:10:26 CDT 2011


Greg Ward <greg at gerg.ca> writes:

> On 21 April 2011, Martin Geisler said:
>> > [...] what I *really* want is
>> >
>> >   hg onrepos --no-recurse 'hg pull --update'
>> >
>> > which would give me the naive implementation of onrepos, i.e. just
>> > iterate over the local .hgsub file.
>> >
>> > Before I dive into implementing this, does it sound right to you? Or
>> > would you prefer a --max-depth option? Or maybe --prune?
>> 
>> I think a --max-depth option would be cool! --no-recurse could even be
>> an alias for --depth=1.
> [...]
>> 
>> Looks good! I've given you write access to the Bitbucket repository, so
>> feel free to start hacking :)
>
> Done.  I just pushed two changesets, the second of which implements
> --max-depth.  (The first one just clarifies the help text: unrelated
> but I couldn't help myself.)
>
> https://bitbucket.org/aragost/onsub/changeset/a2ad7553ba79
> https://bitbucket.org/aragost/onsub/changeset/ecc4fd16555d
>
>         Greg
>
> P.S. it worked! I just tried it with allextensions, and it does
> exactly what I want.

Excellent, thanks a lot!

-- 
Martin Geisler

Mercurial links: http://mercurial.ch/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20110425/67c2acbd/attachment.pgp>


More information about the Mercurial-devel mailing list