Can "bzr annotate" be sped up?

Alexander Belchenko bialix at ukr.net
Sat Jun 18 07:10:04 UTC 2011


17.06.2011 14:04, John Arbash Meinel пишет:
> 1) Annotate in 'reverse' mode. Forward mode is a bit more obvious. You
> start at a rev, mark all lines as 'modified in rev 1'. Then grab the
> second rev, and lines that match are left alone, lines which are new are
> marked 'rev2'. Then on to rev3, etc.
> 
> In reverse mode, you start at rev3 and mark all lines as 'unknown'. Then
> you compare with rev2. All lines that match are left as 'unknown', new
> lines in rev3 are marked 'rev3'. That isn't particularly hard, the
> trickier part is dealing with merge-parents. (Lines are new in the
> current text vs the first parent, but that is because they came from the
> second parent.)

Very interesting, thanks for sharing it. I think reverse mode is very
important, esp. if the system want to support history horizons. Then
you don't have access to older revisions, so reverse order should work
better, IMO.



More information about the bazaar mailing list