You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2010/08/05 20:07:26 UTC

svn commit: r982717 - /subversion/trunk/subversion/tests/libsvn_diff/parse-diff-test.c

Author: dannas
Date: Thu Aug  5 18:07:26 2010
New Revision: 982717

URL: http://svn.apache.org/viewvc?rev=982717&view=rev
Log:
* subversion/tests/libsvn_diff/parse-diff-tests.c
  (git_tree_and_text_unidiff): Add '---' and '+++' lines to the input
    patch. For patches with text changes, we should always have those 
    headers.

Modified:
    subversion/trunk/subversion/tests/libsvn_diff/parse-diff-test.c

Modified: subversion/trunk/subversion/tests/libsvn_diff/parse-diff-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_diff/parse-diff-test.c?rev=982717&r1=982716&r2=982717&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_diff/parse-diff-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_diff/parse-diff-test.c Thu Aug  5 18:07:26 2010
@@ -86,6 +86,8 @@ static const char *git_tree_and_text_uni
   "git --diff a/iota b/iota.copied"                                     NL
   "copy from iota"                                                      NL
   "copy to iota.copied"                                                 NL
+  "--- a/iota\t(revision 2)"                                            NL
+  "+++ b/iota.copied\t(working copy)"                                   NL
   "@@ -1 +1,2 @@"                                                       NL
   " This is the file 'iota'."                                           NL
   "+some more bytes to 'iota'"                                          NL
@@ -94,6 +96,8 @@ static const char *git_tree_and_text_uni
   "git --diff a/A/mu b/A/mu.moved"                                      NL
   "rename from A/mu"                                                    NL
   "rename to A/mu.moved"                                                NL
+  "--- a/A/mu\t(revision 2)"                                            NL
+  "+++ b/A/mu.moved\t(working copy)"                                    NL
   "@@ -1 +1,2 @@"                                                       NL
   " This is the file 'mu'."                                             NL
   "+some more bytes to 'mu'"                                            NL