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

Re: [PATCH] wc-replacements branch: Initial implementation of reverting props after replace

From: Ivan Zhakov <chemodax_at_gmail.com>
Date: 2005-09-07 11:07:03 CEST

On 9/7/05, Erik Huelsmann <ehuels@gmail.com> wrote:
> > I meant that patch fixes only part of replacements. Only repos-repos
> > copying. I'll adjust log message.
>
> You mean wc->wc instead of repos->repos, I think?
Yes, of course wc->wc copies. Sorry.

> > [[
> > Implementation of reverting props after repos to repos replacements.
>
> [snip]
>> * subversion/libsvn_wc/adm_ops.c:
>> (remove_revert_thing): New static helper for
> Can we call this remove_revertfile ? I think that's more descriptive :-)
Ok. I'll fix this.

[snip]
> There is one bug, a few trailing spaces and 1 indenting problem I see
> in the patch. The bug is in remove_revert_thing:
>
> ======
> if (kind == svn_node_file)
> {
> svn_xml_make_open_tag (logtags, pool, svn_xml_self_closing,
> SVN_WC__LOG_RM,
> SVN_WC__LOG_ATTR_NAME, revert_file,
> NULL);
> }
> ======
>
> I think the condition above should be
>
> if (kind == svn_node_file || is_prop)
>
> since otherwise, you won't remove directory-property-revert-files.
I don't understand why this condition should include is_prop? In this
condition I check that revert file exists. It's necessary remove file
if it doesn't exists.

-- 
Ivan Zhakov
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Sep 7 11:07:50 2005

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