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

Re: can i svn cat without keyword expansion

From: Blair Zajac <blair_at_orcaware.com>
Date: Sun, 8 Aug 2010 15:38:08 -0700

On Aug 8, 2010, at 8:50 AM, Nico Kadel-Garcia wrote:

> On Sat, Aug 7, 2010 at 9:21 PM, Blair Zajac <blair_at_orcaware.com> wrote:
>> On Aug 6, 2010, at 3:16 PM, Bob wrote:
>>> Hi,
>>> If I do "svn cat" on a file, with the svn:keywords property set, it expands out
>>> SVN keywords such as $Date$, $Revision$, $Id$, etc., in the file (the ones there
>>> were included in the svn:keywords property anyway). Is there an option that will
>>> NOT do the expansion? Or is there some other way of using the svn client that
>>> will achieve the same thing? As I understand, the file is stored in the
>>> repository with keywords not expanded, and the client expands them when it
>>> retrieves them, so shouldn't it be trivial to have a functionality to skip this
>>> step?
>>> Thanks,
>> Do you want to do this for all files in a checkout or just get a file? If the later, you can use curl or wget if you're using http:// or https:// scheme.
> The original poster in this thread asked about using "svn cat" and
> disabling the keywords: quite sensible, really.

Who said anything about not providing this feature? I would find it useful when I do diffs also. This was just a workaround if you needed a single file without keywords. For a trees worth, of course, it would be painful to script to do a checkout without keyword expansion.

Received on 2010-08-09 00:38:49 CEST

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.