subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julianf...@apache.org
Subject svn commit: r1820044 - /subversion/trunk/subversion/svn/shelve-cmd.c
Date Thu, 04 Jan 2018 09:33:33 GMT
Author: julianfoad
Date: Thu Jan  4 09:33:33 2018
New Revision: 1820044

URL: http://svn.apache.org/viewvc?rev=1820044&view=rev
Log:
Make 'svn shelves' diffstat output show WC-relative paths.

Previously it elided the common prefix of the paths.

Suggested by: jamessan

* subversion/svn/shelve-cmd.c,
  (shelves_list): Add "-p0" option to diffstat.

Modified:
    subversion/trunk/subversion/svn/shelve-cmd.c

Modified: subversion/trunk/subversion/svn/shelve-cmd.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svn/shelve-cmd.c?rev=1820044&r1=1820043&r2=1820044&view=diff
==============================================================================
--- subversion/trunk/subversion/svn/shelve-cmd.c (original)
+++ subversion/trunk/subversion/svn/shelve-cmd.c Thu Jan  4 09:33:33 2018
@@ -121,7 +121,7 @@ shelves_list(const char *local_abspath,
         {
 #ifndef WIN32
           int result = system(apr_psprintf(scratch_pool,
-                                           "diffstat %s 2> /dev/null",
+                                           "diffstat -p0 %s 2> /dev/null",
                                            info->patch_path));
           if (result == 0)
             SVN_ERR(svn_cmdline_printf(scratch_pool,



Mime
View raw message