[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Diff output: get full path of files

From: Jacob Weber <jacob_at_jacobweber.com>
Date: Mon, 24 Oct 2011 14:41:31 -0700

I'm looking for the repository-relative paths. It seems like I get these in some cases, but not others.

For example, if I give it two URLs:
svn diff https://repos/proj1/dir1/dir2https://repos/proj2/dir1/dir2

I get something like this, with the repository-relative paths in parentheses, prefixed by "...":
Index: file1
===================================================================
--- file1 (.../proj1/dir1/dir2) (revision 103644)
+++ file1 (.../proj2/dir1/dir2) (revision 103644)

But if I give it two revisions and a single URL:
svn diff -r100:200 https://repos/proj1/

I get something like this, with no repository-relative paths in parentheses:
Index: dir1/dir2
===================================================================
--- dir1/dir2 (revision 103537)
+++ dir1/dir2 (revision 103538)

Jacob

On Oct 24, 2011, at 2:11 PM, Philip Martin wrote:

> Jacob Weber <jacob_at_jacobweber.com> writes:
>
>> I want to pass the output of "svn diff OLD-URL NEW-URL" to a
>> code-review tool, but I need to include the full path of each file
>> in the ---/+++ headers.
>>
>> The paths in the output always seem to be relative to the directories
>> you pass in. Is there a way to make it include the full paths?
>
> The paths in the standard diff output are repository relative paths. If
> you want the paths to local copies of the files use --diff-cmd to invoke
> your own wrapper, the files paths are parameters 6 and 7.
>
> --
> Philip
Received on 2011-10-24 23:42:08 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.