Reputation: 109
Is there an SVN command that can display the latest revison of a filename and also display its contents? Something like a command line: SVN Log config.file | Cat config.file
Windows or Linux command? The person doing the display will not be the person checking out the code. Read only
Upvotes: 0
Views: 107
Reputation: 28174
There is no single command which will do both. Retrieving revision history information (svn log
) and versioned item contents (svn cat
, svn co
, svn export
) are separate and distinct actions.
You could use svn log --limit 1 file; svn cat file;
in either bash (Linux) or PowerShell (Windows), but the result would be the output of two unrelated commands.
Upvotes: 1