onrepos: non-recursive traversal?
Martin Geisler
mg at lazybytes.net
Thu Apr 21 03:12:26 CDT 2011
Greg Ward <greg at gerg.ca> writes:
Hi Greg
> [...] 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.
> BTW, I've already implemented the test to specify what I want:
>
> """
> --- a/test-onsub.t
> +++ b/test-onsub.t
> @@ -105,6 +105,12 @@
> a/y/s
> a/y/t
>
> +Non-recursive traversal (depth 1):
> +
> + $ hg onsub 'echo $HG_SUBPATH' --no-recurse
> + a
> + b
> +
Looks good! I've given you write access to the Bitbucket repository, so
feel free to start hacking :)
--
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/20110421/21562d93/attachment.pgp>
More information about the Mercurial-devel
mailing list