Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make svn diff show remote changes?

For Example, when I type

svn st --show-updates 

I get

    *   1648648   project/file1

so I know that file1 has changed.

I don't want to update just find out what has changed. When I type

svn diff project/file1

it shows nothing because the file has no local changes.

How to make svn diff show remote changes?

like image 590
IAdapter Avatar asked Sep 09 '11 08:09

IAdapter


2 Answers

simply ask svn to make the diff with the HEAD revision :

svn diff -r HEAD project/file1
like image 135
Cédric Julien Avatar answered Nov 17 '22 18:11

Cédric Julien


Most correct version of diff between unmodified WC and updated repo is expanded answer of Cédric

svn diff -r BASE -r HEAD project/file1

like image 38
Lazy Badger Avatar answered Nov 17 '22 19:11

Lazy Badger