/[Apache-SVN]
ViewVC logotype

Revision 1442640


Jump to revision: Previous Next
Author: stsp
Date: Tue Feb 5 16:03:49 2013 UTC (11 years, 2 months ago)
Changed paths: 2
Log Message:
Make 'svn diff PATH URL' and 'svn diff URL PATH', where exactly two targets
are given and one target is a URL, a new shorthand invocation syntax for
'svn diff --old PATH --new URL' and 'svn diff --old URL --new PATH',
respectively.

These invocations used to error out with a "cannot mix repository and working
copy targets" before. User may intuitively try to diff a working copy to a URL
in the manner allowed by these new shorthands, so this is a usability
enhancement (principle of least surprise).

Suggested by: Alexey Neyman

* subversion/svn/diff-cmd.c
  (svn_cl__diff): Map a 2-target diff invocation where one target is a URL and
   the other target is a path to 'svn diff --old TARGET1 --new TARGET2'.

* subversion/svn/svn.c
  (svn_cl__cmd_table): Update 'svn help diff' output accordingly.


Changed paths

Path Details
Directorysubversion/trunk/subversion/svn/diff-cmd.c modified , text changed
Directorysubversion/trunk/subversion/svn/svn.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26