You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Ivan Zhakov <ch...@gmail.com> on 2006/03/16 11:57:16 UTC

[PATCH] Detect working copy file changes in post-commit using timestamp

"Peter N. Lundblad" <pe...@famlundblad.se> writes:
> An alternative might be to fetch the timestamp of the working file
> when copying it in the svn_wc_transmit_text_deltas function and use
> that timestamp in the entries file in the post-commit processing.

Peter,
I've implemented your idea. But I propose store timestamp in temporary
base file timestmap instead of entries file. Please look to attached
patch.

[[
Detect working copy file changes in post-commit using timestamp

Suggested by: lundblad
                      philip

* subversion/libsvn_wc/adm_crawler.c
  (svn_wc_transmit_text_deltas): Set working copy file's timestamp to
temporary base file.
* subversion/libsvn_wc/log.c:
  (log_do_committed): Check working copy files changes only if
timestamps differ from
  temporary base file timestamp.
]]


--
Ivan Zhakov

Re: [PATCH] Detect working copy file changes in post-commit using timestamp

Posted by Ivan Zhakov <ch...@gmail.com>.
On 3/17/06, Peter N. Lundblad <pe...@famlundblad.se> wrote:
> Ivan Zhakov writes:
>  > "Peter N. Lundblad" <pe...@famlundblad.se> writes:
>  > > An alternative might be to fetch the timestamp of the working file
>  > > when copying it in the svn_wc_transmit_text_deltas function and use
>  > > that timestamp in the entries file in the post-commit processing.
>  >
>  > Peter,
>  > I've implemented your idea. But I propose store timestamp in temporary
>  > base file timestmap instead of entries file. Please look to attached
>  > patch.
>  >
>
> I don't see a reason why this shouldn't work. Amazingly simple!

Commited in r18929.

--
Ivan Zhakov

Re: [PATCH] Detect working copy file changes in post-commit using timestamp

Posted by "Peter N. Lundblad" <pe...@famlundblad.se>.
Ivan Zhakov writes:
 > "Peter N. Lundblad" <pe...@famlundblad.se> writes:
 > > An alternative might be to fetch the timestamp of the working file
 > > when copying it in the svn_wc_transmit_text_deltas function and use
 > > that timestamp in the entries file in the post-commit processing.
 > 
 > Peter,
 > I've implemented your idea. But I propose store timestamp in temporary
 > base file timestmap instead of entries file. Please look to attached
 > patch.
 > 

I don't see a reason why this shouldn't work. Amazingly simple!

Regards,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org