Write current svn version into text file
问题 I have a rails site. I'd like, on mongrel restart, to write the current svn version into public/version.txt, so that i can then put this into a comment in the page header. The problem is getting the current local version of svn - i'm a little confused. If, for example, i do svn update on a file which hasn't been updated in a while i get "At revision 4571.". However, if i do svn info, i get Path: . URL: http://my.url/trunk Repository Root: http://my.url/lesson_planner Repository UUID: ########