[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: Fri, 17 Oct 2008 18:09:38 +0200

Hi all,

which do you prefer?

1) Current implementation on trunk:

[[[
svn diff --summarize \
  --old=file://$VERYLONGURL/foo/@2 \
  --new=file://$VERYLONGURL/quux_at_3

MM file://$VERYLONGURL/foo/modified_file
 M file://$VERYLONGURL/foo/modified_dir
M file://$VERYLONGURL/foo/modified_dir/file_in_modified_dir
]]]

(Note how the very long url is repeated on every line, and how it always
shows the `old' URL.)

2) New implementation I'd like to merge to trunk:

[[[
svn diff --summarize \
  --old=file://$VERYLONGURL/foo/@2 \
  --new=file://$VERYLONGURL/quux_at_3

MM modified_file
 M modified_dir
M modified_dir/file_in_modified_dir
]]]
(Note how it only prints the paths relative to the target)

The current "normal" diff for the same case prints something like:
[[[
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
]]]
(Note how it only prints the difference between the target URLs)

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-18 02:14:26 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.