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

Re: [PATCH] [Modified]Restrict interactive callback for prop conflicts in `svn merge --dry-run'

From: Kannan <kannanr_at_collab.net>
Date: Fri, 16 Oct 2009 14:04:43 +0530

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Julian Foad wrote:
> Can I recommend passing the 'dry_run' flag through to
> maybe_generate_propconflict(), and doing the "if (dry_run) then it's a
> conflict" there in just one place. That will make it easier to extend
> when we want to make it possible for the "accept=theirs" options to act
> properly in dry-run mode.
>
> - Julian

Log:
When in `--dry-run' mode of `svn merge' command, property conflicts
make an interactive callback to the user to resolve the conflicts,
unlike the text conflicts. The following patch restricts the interactive
callback in `--dry-run' mode.

* subversion/libsvn_wc/props.c
  (svn_wc__merge_props) : Pass `dry_run' parameter to the required
  methods.
  (apply_single_prop_add, apply_single_prop_delete,
  apply_single_prop_change, apply_single_generic_prop_change,
  apply_single_mergeinfo_prop_change) : Pass `dry_run' to
  `maybe_generate_propconflict'
  (maybe_generate_propconflict) : Check for `--dry-run' mode and set the
  boolean `conflict_remains', instead of invoking the interactive
  callback.

Patch by : Kannan R <kannanr_at_collab.net>

Suggested by : julianf

- --
Regards,
Kannan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEVAwUBStgwI3lTqcY7ytmIAQKpbwgAqcHoCYpWFKOjWDW0M+miVRmHLYcSmFyD
P0oPrfSEvrU5hvF8VP7nOoi7xNhxcfenSc5JlOuBE9b9IqNj7QurdkL6UFHT+Nnw
s2c7NyOaTV8fAU1QMFRo3RHs8Fron9XBoPH5vRKV5chsIFjaLhvNfa8eBusDBcTy
T9VLaVUzC+0u02CAjhtGfwFT+6u0+pTYlbpxWSxRtMRdWmIfEVnHev9rtChtAZPo
zCcyWjVYTysBur/I7ZJ/MirZK2KqS2hkY/CbodQvCDunZYWdSfSlE66GHT6+S6Uk
Ree0+/s0HbxG0ypD91mf2dQ0xAdq08Pu8e/3V6uWAVDwHDKO/YXCiQ==
=qLU6
-----END PGP SIGNATURE-----

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2408158

Received on 2009-10-16 10:36:31 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.