Domanda

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

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top