Return-Path: Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: (qmail 94169 invoked from network); 10 Jan 2011 15:19:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Jan 2011 15:19:44 -0000 Received: (qmail 60815 invoked by uid 500); 10 Jan 2011 15:19:43 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 60676 invoked by uid 500); 10 Jan 2011 15:19:43 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 60668 invoked by uid 99); 10 Jan 2011 15:19:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Jan 2011 15:19:42 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of qazwart@gmail.com designates 74.125.82.47 as permitted sender) Received: from [74.125.82.47] (HELO mail-ww0-f47.google.com) (74.125.82.47) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Jan 2011 15:19:38 +0000 Received: by wwb39 with SMTP id 39so22899710wwb.16 for ; Mon, 10 Jan 2011 07:19:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=buso+1VedHqmXVIHYW/JigOGRRzbvRIk6m8RPVJ7Lek=; b=Sz9WUvmZMd0mR+oCn7Z31dXGzlfuhDy+q07452GQDnMUtoUE4gkacjG88+vUFdG3so HGuWyCNsccSQspIwCWAdNiO7QfB4glBPL+YvRKclyQQB8i7+tF0CUHeORExDXYvhkZRA OppgtSwEatQ8VwjfuXuBxEyJWNHgWlVGOcFrc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=HgF5afu82vIKG0rimCrG+27cAL8QFnafRwKvMNMigMH8P1eM8G4cQbDw/dC2jeED2U epbmP09F4XvCIs2HODH7dGDuJf80DmU3ti8uysZgb1G1d3wPnawegwxIPdDnbsnSfgRD 7UyVV4nDQeBum79iHAzFo42LdOIJtSLXtGVZI= MIME-Version: 1.0 Received: by 10.216.158.133 with SMTP id q5mr956692wek.39.1294672302893; Mon, 10 Jan 2011 07:11:42 -0800 (PST) Received: by 10.216.168.135 with HTTP; Mon, 10 Jan 2011 07:11:42 -0800 (PST) In-Reply-To: <4D2B1D44.2020203@ebcot.de> References: <4D2B1D44.2020203@ebcot.de> Date: Mon, 10 Jan 2011 10:11:42 -0500 Message-ID: Subject: Re: One-time keyword substitution From: David Weintraub To: Philipp Leusmann Cc: users@subversion.apache.org Content-Type: multipart/alternative; boundary=0016367fb373b6ec3804997f627f --0016367fb373b6ec3804997f627f Content-Type: text/plain; charset=ISO-8859-1 2011/1/10 Philipp Leusmann > is there a way to have svn substitute a keyword only once and then leave it > at the substituted value? > To get directly to your answer: No, Subversion doesn't do what you want. There is a whole mess of debate on the value of RCS keywords in both Subversion and other version control systems. I come down firmly on the side the RCS keywords are evil and should never be used. They basically change the source code you've tested and vetted on commit which can only mean trouble. And all for what? Everything that RCS keywords do is already in Subversion. What is this database for? Is this to allow people to see differences between files in Subversion revisions via a webpage? If so, why not use either sventon or ViewVC (http://www.sventon.org/ or http://viewvc.org/) which handle everything for you without the need for a database? If you want, you can role your own system that parses the various Subversion commands via PHP or Perl CGI or whatever technology you want on the fly. What you're trying to do looks like something "svn log" or "svn blame" will already do. If you really, really need to do this, then the best bet is to use a post-commit hook that'll update a file or database with the information you want. -- David Weintraub qazwart@gmail.com --0016367fb373b6ec3804997f627f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 2011/1/10 Philipp Leusmann <leusmann@ebcot.de>
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex;"> is there a way to have svn substitute a keyword only once and then leave it= at the substituted value?

To get = directly to your answer: No, Subversion doesn't do what you want.

There is a whole mess of debate on the value of R= CS keywords in both Subversion and other version control systems.

I come down firmly on the side the RCS keywords are evil an= d should never be used. They basically change the source code you've te= sted and vetted on commit which can only mean trouble. And all for what? Ev= erything that RCS keywords do is already in Subversion.

What is this database for? Is this to allow people to s= ee differences between files in Subversion revisions via a webpage? If so, = why not use either sventon or ViewVC (h= ttp://www.sventon.org/=A0or=A0http://vie= wvc.org/) which handle everything for you without the need for a databa= se? If you want, you can role your own system that parses the various Subve= rsion commands via PHP or Perl CGI or whatever technology you want on the f= ly.

What you're trying to do looks like something "= ;svn log" or "svn blame" will already do. If you really, rea= lly need to do this, then the best bet is to use a post-commit hook that= 9;ll update a file or database with the information you want.


--
David Weintraub
qazwart@gmail.com
--0016367fb373b6ec3804997f627f--