chui

How to get the current revision number into a file after export?

不羁岁月 提交于 2019-12-08 08:41:15
问题 I'm maintaining a homebrew web-based CRM that I version-control with Subversion. What I want is to have the revision number written into a file after I do an export to the production server so that I can display it in the CRM's status page for debugging reasons. Is there any way to do this with command-line tools? 回答1: Technically, you can't be sure after doing the export, because another commit might have happened just in-between. Practically, you can get the information with svn info <URL>

How to get the current revision number into a file after export?

孤街浪徒 提交于 2019-12-06 16:46:13
I'm maintaining a homebrew web-based CRM that I version-control with Subversion. What I want is to have the revision number written into a file after I do an export to the production server so that I can display it in the CRM's status page for debugging reasons. Is there any way to do this with command-line tools? Technically, you can't be sure after doing the export, because another commit might have happened just in-between. Practically, you can get the information with svn info <URL> . You could of course do the svn info first, extract the revision and export that revision to make sure both