You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Stanimir Stamenkov <s7...@netscape.net> on 2010/03/31 14:09:08 UTC

svn stat - show source of copied files

I'm trying to determine the source of an added file after rename, 
for example, prior the changes are committed.  Is it possible?  I 
have not been able to find out how using the stat command.  All I 
get is the + indicator:

svn stat
A  +    path/to/myfile
D       myfile

FWIW, I've seen this with the Mercurial's stat command:

hg stat
A path/to/myfile
R myfile

hg stat -C
A path/to/myfile
   myfile
R myfile

-- 
Stanimir

Re: svn stat - show source of copied files

Posted by Stefan Sperling <st...@elego.de>.
On Wed, Mar 31, 2010 at 05:09:08PM +0300, Stanimir Stamenkov wrote:
> I'm trying to determine the source of an added file after rename,
> for example, prior the changes are committed.  Is it possible?

Yes, you can use svn info:

  $ svn info alpha.copy                                  
  Path: alpha.copy
  Name: alpha.copy
  URL: file:///tmp/svn-sandbox/repos/trunk/alpha.copy
  Repository Root: file:///tmp/svn-sandbox/repos
  Repository UUID: b8590abe-3cd0-11df-a5c1-e3980ec03287
  Revision: 2
  Node Kind: file
  Schedule: add
  Copied From URL: file:///tmp/svn-sandbox/repos/trunk/alpha
  ^^^^^^^^^^^^^^^^
  Copied From Rev: 2
  ^^^^^^^^^^^^^^^^^^
  Checksum: 9f9f90dbe3e5ee1218c86b8839db1995

Stefan