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

quick survey: diff --summarize output

From: Neels J. Hofmeyr <neels_at_elego.de>
Date: Sun, 19 Oct 2008 00:44:56 +0200

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
]]]

The current "normal" diff for the same case only prints the difference
between the target URLs:
[[[
svn diff --old=file://$VERYLONGURL/foo_at_2 \
         --new=file://$VERYLONGURL/quux_at_3

Index: modified_dir/file_in_modified_dir
===================================================================
--- modified_dir/file_in_modified_dir (.../foo) (revision 2)
+++ modified_dir/file_in_modified_dir (.../quux) (revision 3)
@@ -1,2 +1 @@
 file
-more
]]]

Does anyone see a reason why implementation 2 would be no good?

Thanks
~Neels

-- 
Neels Hofmeyr -- elego Software Solutions GmbH
Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany
phone: +49 30 23458696  mobile: +49 177 2345869  fax: +49 30 23458695
http://www.elegosoft.com | Geschäftsführer: Olaf Wagner | Sitz: Berlin
Handelsreg: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194

Received on 2008-10-19 00:45:16 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.