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

svn diff doesn't include repository path of changed files

From: David Sitsky <sits_at_users.sourceforge.net>
Date: 2003-08-18 03:02:29 CEST


I am the writer of Codestriker (http://codestriker.sourceforge.net), a
web-based Code reviewing system, which supports Subversion (and CVS,
patch) diffs.

A user informed me of a problem I wasn't aware of. Code review topics are
typically created by issuing a command like:

"cvs diff -uN > /tmp/review.txt"

This file is then loaded in Codestriker, parsed, and then available for
reviewing. I have always run this command at the top-level of a checkout,
so all file paths in the review.txt file were relative to the repository

I had a user, who had something like:


He did a:

cd project/dirb
svn diff -uN > /tmp/review.txt

This caused a problem, rather than seeing something like:

Index: project/dirb/file3.java
--- project/dirb/file3.java (revision 5497)
+++ project/dirb/file3.java (working copy)

the repository path information is not present, as this is what happened:

Index: file3.java
--- file3.java (revision 5497)
+++ file3.java (working copy)

This information is often really important, as it adds extra information to
the diff. When using "cvs diff", this information is present, as there is
an extra line "RCS file: " which contains the full path of the repository
file being modified. I wonder if the Index: file can contain this

Codestriker needs this information, to be able to link the file being
modified with the corresponding file in the repository, so that it can
retrieve the entire contents of this file, when displaying how the file
appears before any changes, and after.

Is there another flag or another way of retrieving this information? I'm
guessing a script could be written to work around this somehow, but I
wanted to first check if there is an easy way around this.

I should also say, I am not a real subversion user yet (and I'm not
subscribed to this list), so I apologise in advance if this is a really
silly question.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Aug 18 03:14:31 2003

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