Subversion has the $Rev$
keyword, that's replaced by in example $Rev: 1843 $
when a file with that keyword is committed. Subversion places on it the revision this commit created.
I'd like to use this info on my apps, so that after compiled an app stores its latest revision and reports it together with its version on about page.
What's the best practice to do it, considering that any file may be the latest committed?
I'm considering creating a method on the Core class that receives this string and parses the number from it, then each class would call this method on their constructor, passing the string handled by Subversion. Then on the method I store the greater number.
But this seems whacky, so I'd like to know if there's a better way to implement it.
Also, is there a keyword for the commit datetime?