We can then use svn info in recursive mode to get more information from the local directory: > svn info -R | grep 'Path\|Revision' I get " 323" as revision - which is actually the lowest revision of those that reported by svnversion! Repository Root: svn+ssh:///path/to/MyProject URL: svn+ssh:///path/to/MyProject/MyProjectDir I get " 323:340", which I guess means: " you've got items here, ranging from revision 323 to 340".
![svn diff between revisions svn diff between revisions](https://tortoisesvn.net/docs/release/TortoiseSVN_en/images/RevisionGraph.png)
Then, if I call svnversion: $ svnversion. Say I've cd-ed in a revisioned subdirectory ( MyProjectDir). To really get the latest revision ("head revision") number on your remote respository, use this: svn info -r 'HEAD' | grep Revision | egrep -o "+"Ī note about getting the latest revision number: The following should work: svnlook youngest
#Svn diff between revisions windows
I've used it in Windows with svn info |grep Revision: |cut -c11. This should work in Bash, from a working directory. There are some nice blog posts about integrating subversion numbers into your build script: This will give you the latest revision number at the head of your repository. To capture stderr in your output use thusly: $output = `svn info $url 2>&1`
![svn diff between revisions svn diff between revisions](https://media.geeksforgeeks.org/wp-content/cdn-uploads/20200710223227/GIT-vs-SVN.jpg)
If there is an error then the output will be directed to stderr. You can get the output in XML like so: $output = `svn info $url -xml` Will be more complex: 4123:4168 mixed revision working copyĤ123:4168MS mixed revision, modified, switched working copy If you want to analyse a local working copy, the best tool is svnversion, which comes with Subversion and produces output like 968:1000M. If you have a Linux-only (or XP-only) solution, that would also be helpful. I'm running Windows XP, but I would prefer a platform-independent solution that can also work in Linux. I have SVN installed, but no bindings installed for PHP/Perl/Python. SVN is located on my Intranet, but not my specific computer. It needs to be non-intensive (so I do it every 5 minutes as a cron job SVN's performance should not be affected). Using PHP, Perl, or Python (preferably PHP), I need a way to query an SVN database and find out the last revision number sent to SVN.