On Tue, Aug 12, 2008 at 13:14, James Green <James.Green_at_occam-dm.com> wrote:
> Hi All,
>
> I'm just looking at SubVersion for the first time as we wish to migrate from
> Visual SourceSafe to SVN. I have my server all setup, tested and working.
> So far everything has been great.
>
> The only problem I'm having is trying to find information on some
> functionality we get in VSS that we'd like to carry over to SVN. I have
> looked through Google and the online book with no luck so far (maybe I
> missed something however!).
>
> Currently at the top of our C# source files we can place a template like:
>
> #region Version Control
> /*
> *********************************************************************
> $Header: $
> *********************************************************************
> $History: $
> *********************************************************************
> Last Revision $Modtime: $$Revision: $
> *********************************************************************
> */
> #endregion
>
> And then upon a checkin of a file it will populate the variables with the
> relevant information into the source file. Does anyone have any info on
> such a hook cmd/exe file that we could use in the hooks directory of our
> repositories?
You should not modify the contents of a commit via hook. By doing so,
the committer's working copy is immediately rendered out of date. This
has been rehashed a lot on this mailing list.
Last Revision date/time/revision number is already available via
keywords. See http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
"History" will not be made available as an SVN keyword ever, most
likely. See http://subversion.tigris.org/faq.html#log-in-source
> Also is there any way of configuring how SVN creates new repositories so
> that it will auto copy any custom hooks into any new repositories?
Write yourself a little script that creates the repository, then
copies the hooks from a "template" instead of manually running
svnadmin create.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-12 19:49:01 CEST