You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2018/01/04 09:33:33 UTC
svn commit: r1820044 - /subversion/trunk/subversion/svn/shelve-cmd.c
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,