Ajedi32
Ajedi32

Reputation: 48368

How do I `svn diff` while excluding a directory?

I'm trying to generate a diff between two revisions of a specific folder in SVN. However, one subdirectory has a lot of messy and irrelevant changes that I don't want included in the diff. Any idea on how I can accomplish this?

I thought perhaps I could try something like this?

C:\>svn diff -r 58:64 `svn ls http://svn-server/svn/my-app/branches/prototype | grep -v 'doc/'`

That doesn't seem to work though:

svn: E155007: 'C:\cygwin\home\myusername\.gitignore' is not a working copy

.gitignore is one of the files returned by svn ls http://svn-server/svn/my-app/branches/prototype | grep -v 'doc/':

C:\>svn ls http://svn-server/svn/my-app/branches/prototype | grep -v 'doc/'
.gitignore
.project
.rspec
.rvmrc
Gemfile
Gemfile.lock
README.rdoc
Rakefile
app/
config/
config.ru
db/
features/
lib/
log/
public/
script/
spec/
test/
vendor/

Upvotes: 1

Views: 2962

Answers (1)

Hew Wolff
Hew Wolff

Reputation: 1509

I suggest you CD into a local working copy of the folder and try the command again. Then "svn diff" should be able to make sense of the local paths output from "svn ls".

Upvotes: 1

Related Questions