iterating over revisions in a branch
Jelmer Vernooij
jelmer at samba.org
Wed Jan 4 23:12:02 GMT 2006
On Thu, Jan 05, 2006 at 10:02:40AM +1100, Robert Collins wrote about 'Re: iterating over revisions in a branch':
> On Wed, 2006-01-04 at 14:05 +0100, Jelmer Vernooij wrote:
> > > It occurred to me just now that it doesn't feel right. If I'm iterating
> > > over revisions, I shouldn't have to extract the revision during the body of
> > > the iterator loop, surely instead of the revision id I should get back the
> > > whole revision?
> > Efficiency. The list of revision ids can be read directly from the
> > .bzr/revision-history file. Reading the revision itself requires reading
> > the appropriate file in .bzr/revisions/ (amongst other files).
> Eh? return an iterator over revisions, no revisions need to be
> constructed until you actually access them, if you reverse the iterator
> I'm pretty sure you can implement some __thing__ to tell python that you
> know how to reverse better than it does.
Oops, I didn't know that. I guess I still think like a C programmer
;-) Sorry.
Cheers,
Jelmer
--
Jelmer Vernooij <jelmer at samba.org> - http://jelmer.vernstok.nl/
Currently playing: Opeth - Blackwater Park
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060105/f405d4d2/attachment.pgp
More information about the bazaar
mailing list