Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

svn status see file copy source

Tags:

svn

In my working copy, say I run this:

$ svn cp foo.cpp bar.cpp

When I svn st, it shows that bar.cpp was copied.

$ svn st 
A + bar.cpp

But how can I find out that bar.cpp is a copy of foo.cpp? How can I get the name of the original file before I commit?

like image 905
ACK_stoverflow Avatar asked Oct 31 '25 09:10

ACK_stoverflow


1 Answers

A coworker and I found the answer -

$ svn info bar.cpp | grep '^Copied From URL:'
Copied From URL: svn://myserver.com/path/to/file/foo.cpp
like image 193
ACK_stoverflow Avatar answered Nov 02 '25 22:11

ACK_stoverflow



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!