You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by "Neels J. Hofmeyr" <ne...@elego.de> on 2008/10/17 16:09:38 UTC

quick survey: diff --summarize output

Hi all,

which do you prefer?


1) Current implementation on trunk:

[[[
svn diff --summarize \
  --old=file://$VERYLONGURL/foo/@2 \
  --new=file://$VERYLONGURL/quux@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@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@2 \
         --new=file://$VERYLONGURL/quux@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