On Jan 3, 2008, at 21:51, Srilakshmanan, Lakshman wrote:
> Ryan Schmidt wrote:
>> On Jan 3, 2008, at 19:58, Srilakshmanan, Lakshman wrote:
>>> My understanding is that the svn keyword expansion is performed
>>> on the
>>> client side.
>>> The above being the case, word doc files on the server should
>>> never be
>>> corrupted due to keyword expansion related issues, because the
>>> keywords are not expanded and stored on the server.
>>> Therefore, how can I retrieve a MSword file without a client
>>> attempting to perform keyword substitution.
>>> I tried svn export http://.../ , alas that too substitutes keywords.
>>> I know this because I have a txt file and a MSword file in the same
>>> Any help is much appreciated.
>>> I am aware that keyword expansion is not supported for MSWord
>>> (binary) files http://svn.haxx.se/users/archive-2007-11/0801.shtml.
>>> I have *not* got my self into a strife, but was interested in
>>> having a
>>> work around for such an issue.
>> The client does the keyword substitution, yes. But it does so not
>> when checking out or updating a working copy, but also when
>> So, if your Word file contains the string '$Id:foo$', and "Id" is in
>> this file's svn:keywords property, then the Subversion client will
>> transform '$Id:foo$' to '$Id$' before sending the file to the server,
>> thus likely corrupting it if it is a binary file. The data has been
>> changed before the file was sent to the repository, therefore
>> there is
>> no way to retrieve the original from the repository. Therefore you
>> not set svn:keywords on binary files, unless you restrict yourself to
>> the fixed-width keywords, which are meant to work fine in binary
>> Assuming strings like '$Id$' do not otherwise appear in the file.
> When I look at my text file using the browser (IE) I don't see the
> keyword expanded. I do however see the keyword substituted once I have
> checked it out using the client.
> Am I doing something wrong ?
Nope. That's just how it is. The web browser is not a Subversion
client. Therefore, it sees the file as it exists in the repository --
with keywords unexpanded. As you know, only a Subversion client
performs the keyword expansion.
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-01-04 05:13:34 CET