RCF: archive for subrepositories
Martin Geisler
mg at lazybytes.net
Fri Jul 16 03:41:21 CDT 2010
Matt Mackall <mpm at selenic.com> writes:
> At some level it would be nice to have contexts be able to deal with
> this and then just have archive know about contexts. For instance:
>
> for f in ctx[foo].files(subs=opts['sub']):
> data = ctx[foo][f].data()
> self.add(f, data)
You must mean
ctx = repo[foo]
for f in ctx.files(subs=opts['sub']):
data = ctx[f].data()
self.add(f, data)
> Or something like that.
Yeah, that would be nice. I'll see what I can come up with along those
lines...
--
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/20100716/a238d43a/attachment.pgp>
More information about the Mercurial-devel
mailing list