Pagine

Friday 16 December 2016

SVN tutorial n 22 - log

The "svn log" command shows log messages from the repository. If no arguments are supplied, svn log shows the log messages for all files and directories inside (and including) the current working directory of your working copy. You can refine the results by specifying a path, one or more revisions, or any combination of the two. The default revision range for a local path is BASE:1.
Instead If you specify a URL alone, it prints log messages for everything the URL contains. If you add paths past the URL, only messages for those paths under that URL will be printed. The default revision range for a URL is HEAD:1. The synopsis is:
 svn log [PATH]
or
 svn log URL[@REV] [PATH...] 

Examples:

1) log of current folder
 svn log
2) log of a local file target
 svn log MyFile.txt
3) log of a file via url
 svn log https://mysvnrepo/svn/myproject/trunk/MyFile.txt
4) log for revision
 svn log -r 3:6 MyFile.txt
5) log for revision of a file via url
 svn log -r 3:6 https://mysvnrepo/svn/myproject/trunk/MyFile.txt
6) log in xml format
 svn log --xml https://mysvnrepo/svn/myproject/trunk/MyFile.txt

No comments:

Post a Comment