update without changes: broken lock removed, no notifications generated
From: Dmitry Pavlenko <pavlenko_at_tmatesoft.com>
Date: Tue, 24 Apr 2012 13:55:37 +0200
Hello.
(Tried with SVN r1297653)
Please, consider the following scenario:
1. Set lock on a file file locally
2. Unset lock on the file remotely
As result the lock is broken
wc$ svn status -u file
3. Let's update to the latest revision (r1) now.
wc$ svn update
wc$ svn status -u file
So the lock is removed. Actually "notify" function of SVN was called only twice for update start and
Here's why it happens. update_editor.c , function "close_file". Notification condition looks like
if (eb->notify_func && !fb->already_notified && fb->edited) {
fb->edited is false here because the update didn't change contents or properties, so the notification
For SVN 1.6.9 the same condition looks like
if (((content_state != svn_wc_notify_state_unchanged) ||
that seems to be more reasonable with respect to "lock_state" processing.
So I propose to add (lock_state != svn_wc_notify_lock_state_unchanged) condition somewhere to SVN
|
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.