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

[WIP] #1957 'svn switch does not update keywords'

From: Daniel Näslund <daniel_at_longitudo.com>
Date: Thu, 24 Jun 2010 10:51:15 +0200

Hi!

Is 'svn switch does not update keywords' a problem that needs solving?

Is the performance of this solution acceptable (traverse the entire wc
one more time after the editor drive)?

Alternatives?
* Custom db-query that only returns the paths with matching property set
  on them. Could be used by 'svn pg -R' later on.
* Do the recording during the crawling of the wc. Saves us the extra
  traversal.

And why is it not working? :)

I'm translating the file in the WC back into Normal Form and then I
install it through the workqueue mecanism. It does get translated but
not to the current URL but to the previous.

[[[
Fix issue #1975 - 'svn switch does not update keywords'.

Only files affected by the switch gets keyword translation, possibly
making some $URL$ keywords incorrect. We do a complete traversal of
the WC to check for the files that have svn:keywords pristine props
set and retranslate those files. */

* subversion/libsvn_wc/update_editor.c
  (reinstall_target_baton): New
  (reinstall_target_with_keywords): New.
  (close_edit): walk all children and call
    reinstall_target_with_keywords().
]]]

Daniel

Received on 2010-06-24 10:52:09 CEST

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.