[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Is it possile to include an int into a text file being committed?

From: Andy Levy <andy.levy_at_gmail.com>
Date: Thu, 20 Nov 2008 12:53:45 -0500

On Thu, Nov 20, 2008 at 12:47, Larry Shatzer, Jr. <larrys_at_gmail.com> wrote:
> On Thu, Nov 20, 2008 at 10:33 AM, Janek <janek_at_cemokom.eu> wrote:
>> We are using an svn repositary for managing a large dns server.
>> Now, anybody who needs commit any changes of a zone file, also needs to
>> increment a serial number of zone file,
>> so the changes are accepted by dns server.
>>
>> Is there any possibility to automate this action? It is similar to
>> including $revision$ but there is no place for anything else but the number.
>
> Create a pre-commit hook that checks the old and new file, and if the
> serial is not incremented reject it.

What about doing it on the checkout/update side when the file goes out
to the DNS server? After the update/checkout is complete, search for
$Revision: 123$ and replace with 123? Rather than run a straight svn
co/up/export, write a wrapper script to do the svn operation then fix
the keyword. Presumably one won't be editing right on the DNS server
and committing back to the repository.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-11-20 18:54:07 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.