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

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

From: Janek <janek_at_cemokom.eu>
Date: Thu, 20 Nov 2008 15:21:57 +0100

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 eles but th number.

example:

a text file after commit:

$ORIGIN .
$TTL 86400 ; 1 day
17.168.192.in-addr.arpa IN SOA example1.org. new.example1.org. (
                                1000000001 ; serial
                                10800 ; refresh (3 hours)
                                3600 ; retry (1 hour)
                                604800 ; expire (1 week)
                                86400 ; minimum (1 day)
                                )
                        NS ns.example1.org.
                        NS ns2.example.org.

After another commit:

$ORIGIN .
$TTL 86400 ; 1 day
17.168.192.in-addr.arpa IN SOA example1.org. new.example1.org. (
                                1000000002 ; serial
                                10800 ; refresh (3 hours)
                                3600 ; retry (1 hour)
                                604800 ; expire (1 week)
                                86400 ; minimum (1 day)
                                )
                        NS ns.example1.org.
                        NS ns2.example.org.

---------------------------------------------------------------------
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:56:34 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.