Garrett Rooney wrote:
> Brandon Ehle wrote:
>
>> I implemented a second mapping for the svn-annotate script that runs
>> the command line client instead of the SWIG bindings and I may have
>> found a reason why not to shell out to the command line.
>>
>> This version uses cat and Python's internal diff library instead of
>> svn's diff command. Source for the new version is here
>> http://subversion.kicks-ass.org/
>
>
> Very cools stuff! (You see, you already got one more person to try it
> out by not relying on the bindings. *grin*) One suggestion. You
> might want to have diagnostic output (like the "Diffing revision
> whatever" stuff) go to stderr instead of stdout, since at the moment,
> running the script and redirecting stdout to a file gets a bunch of
> that sort of output in with the actual annotated output of the file.
>
> Also, I haven't looked at the algorithm you're using closely, but you
> seem to be going from earliest to latest revisions. Perhaps it would
> be possible to reverse that and go from latest to earliest, so that in
> the case where an entire file has been rewritten, you can avoid some
> diffs.
>
Yeah, I've already planning to do that, but I haven't found a single
test case for this yet. There is almost always at least one line of
whitespace or something that goes back to the initial revision. :)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jul 29 17:44:01 2003