[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: Janek <janek_at_cemokom.eu>
Date: Fri, 21 Nov 2008 08:06:16 +0100
Thanks,
I think we'll use the precommit hook for
* checking of dns records validity (i didn't mentioned that before, butdo that)
* comparation of serial number with previous version
 
or

* in place of comparation we'll autoincrement the serial. (i've read in the O'Reilly, it's not a good idea, but ...)

Dne 20.11.2008 18:53, Andy Levy napsal(a):
On Thu, Nov 20, 2008 at 12:47, Larry Shatzer, Jr. <larrys@gmail.com> wrote:
  
On Thu, Nov 20, 2008 at 10:33 AM, Janek <janek@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@subversion.tigris.org For additional commands, e-mail: users-help@subversion.tigris.org Received on 2008-11-21 08:06:46 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.