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

Re: saving time stamps - Question

From: P.Marek <pmarek_at_cpan.org>
Date: 2003-05-22 06:55:19 CEST

> This is for a specific issue, right? Umm... is it issue #1162? Or
> #1256? (Hard to prioritize without knowing the goal.)
>
> Thanks,
> -K
It's issue #1256. My problem is, that svn syncs the *file* with the properties
to the repository, not the internal data structures; so I'd have to modify
the property file, which is inelegant, slow (1) and error-prone.

1) setting the property via modifying the .svn/props/ file, if it is done via
the "normal" functions, results in a complete reading of the file (although
the values are in memory at this time), appending to the memory data
structures, writing a temporary file, chmod()ing the property file, renaming
the temporary file to the correct name, chmod()ing the file.
I'd like to avoid that overhead, but it seems to be not easy.

I understand and acknowlege that it's much simpler (and therefore *better*) to
have a single synchronize-call, which is used everywhere, for data files and
properties.

So I ask if there's a simple solution, which avoids doing the equivalent of
"svn st", setting svn:text-time on every file, and then calling "svn ci".

Maybe I can send a property change at the end of the file-stream (but before
the file's data)?? I think of svn_client__do_commit() in the first loop.

Comments??

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu May 22 06:56:32 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.