thepadders
asked on
Export in Subversion with variable replacement
I am trying to setup deployment using subversion.
When I used CVS I used to have the revision number and date for the individual file included. This was useful when debugging code or fixing bugs in case a person had an old version of the file, it would be known.
With Subversion the repository number is universal across all files.
I would however like to be able to list the version number on a file for the revision when that file last changed, and also the date of that.
Is that somehow possible?
Thank you.
When I used CVS I used to have the revision number and date for the individual file included. This was useful when debugging code or fixing bugs in case a person had an old version of the file, it would be known.
With Subversion the repository number is universal across all files.
I would however like to be able to list the version number on a file for the revision when that file last changed, and also the date of that.
Is that somehow possible?
Thank you.
ASKER
I use subversion to manage PHP Files, at the top of each file I want something like this:
########################## ###
// Product Name : Name
// Product Revision : 1545 (ie the subversion revision)
// Last Change Revision : 1245 (the revision when this file last changed)
// Last Change Revision Date : 12/04/2005 (date this file last changed, ie date of 1245)
########################## ##
##########################
// Product Name : Name
// Product Revision : 1545 (ie the subversion revision)
// Last Change Revision : 1245 (the revision when this file last changed)
// Last Change Revision Date : 12/04/2005 (date this file last changed, ie date of 1245)
##########################
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you very much!!!!
I got keyword expansion working perfectly now, thank you. I use linux for building so I think I will do that manually, do it in the same way as SubWCRev but just directly on linux.
Thanks again, all that info helped so much!
I got keyword expansion working perfectly now, thank you. I use linux for building so I think I will do that manually, do it in the same way as SubWCRev but just directly on linux.
Thanks again, all that info helped so much!
ASKER
Is there anyway of getting the filename from the id but not the full path to that id? Ie so I can just get text.txt ?
You're welcome!
At least in Windows, if you use $Id$ it won't give you full path but not path. A quick test, my repo is at G:\testrepo so path is a/b/text.txt:
$Id: text.txt 1 2005-04-27 13:49:05Z fer $
$LastChangedRevision: 1 $
$LastChangedDate: 2005-04-27 15:49:05 +0200 (Wed, 27 Apr 2005) $
$LastChangedBy: fer $
$HeadURL: file:///g:/testrepo/a/b/te xt.txt $
If it doesn't help, you can write to users_at_subversion.tigris .org or join to the IRC channel. More info at <http://subversion.tigris.org/>.
Good luck!
At least in Windows, if you use $Id$ it won't give you full path but not path. A quick test, my repo is at G:\testrepo so path is a/b/text.txt:
$Id: text.txt 1 2005-04-27 13:49:05Z fer $
$LastChangedRevision: 1 $
$LastChangedDate: 2005-04-27 15:49:05 +0200 (Wed, 27 Apr 2005) $
$LastChangedBy: fer $
$HeadURL: file:///g:/testrepo/a/b/te
If it doesn't help, you can write to users_at_subversion.tigris
Good luck!
www.juicystudio.com
That has plent of info on the FSO :)
Once I know exactly what you are trying to do I can make a working example of what you are attempting to do provided it is something I am able to do , obviously LOL.
I will give it my best shot :)