[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: quick survey: diff --summarize output

From: Hyrum K. Wright <hyrum_wright_at_mail.utexas.edu>
Date: Sat, 18 Oct 2008 18:55:35 -0500

Neels J. Hofmeyr wrote:
> Hi all,
>
> which `diff --summarize' output do you prefer?
>
>
> 1) Current implementation on trunk:
> The very long url is repeated on every line, and it always
> shows the `old' URL.
> [[[
> $ svn diff --summarize \
> --old=$VERYLONGURL/foo/@2 \
> --new=$VERYLONGURL/quux_at_3
>
> MM $VERYLONGURL/foo/modified_file
> M $VERYLONGURL/foo/modified_dir
> M $VERYLONGURL/foo/modified_dir/file_in_modified_dir
> ]]]
>
>
>
> 2) New implementation I'd like to merge to trunk:
> Only print the paths relative to the target.
> [[[
> $ svn diff --summarize \
> --old=$VERYLONGURL/foo/@2 \
> --new=$VERYLONGURL/quux_at_3
>
> MM modified_file
> M modified_dir
> M modified_dir/file_in_modified_dir
> ]]]

What about using our relative repo syntax for displaying the output? You'd get
something like:
[[[
$ svn diff --summarize \
    --old=$VERYLONGURL/foo/@2 \
    --new=$VERYLONGURL/quux_at_3

MM ^/foo/modified_file
 M ^/foo/modified_dir
M
]]]

(I've got no particular opinion on any of the suggestions, just pointing out
additional possibilities.)

-Hyrum

Received on 2008-10-19 01:55:49 CEST

This is an archived mail posted to the Subversion Dev mailing list.