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

Re: svn commit: r38903 - in trunk/subversion: include libsvn_wc svn

From: Hyrum K. Wright <hyrum_at_hyrumwright.org>
Date: Fri, 21 Aug 2009 08:05:17 -0500

These also need to find their way into the JavaHL bindings. (Not that
you have to do it, just a note for somebody that wants to.)

-Hyrum

On Aug 21, 2009, at 7:56 AM, Stefan Sperling wrote:

> Author: stsp
> Date: Fri Aug 21 05:56:39 2009
> New Revision: 38903
>
> Log:
> Introduce new conflict action and reason types to describe replaced
> items.
>
> * subversion/include/svn_wc.h
> (svn_wc_conflict_action_t): New enum value
> svn_wc_conflict_action_replace.
> (svn_wc_conflict_reason_t): New enum avlue
> svn_wc_conflict_reason_replaced.
>
> * subversion/svn/tree-conflicts.c
> (action_str, reason_str, svn_cl__append_tree_conflict_info_xml):
> Handle
> new conflict action and reason types.
>
> * subversion/libsvn_wc/tree_conflicts.c
> (action_map): Add new conflict type to action map.
> (reason_map): Add new conflict type to reason map.
>
> Modified:
> trunk/subversion/include/svn_wc.h
> trunk/subversion/libsvn_wc/tree_conflicts.c
> trunk/subversion/svn/tree-conflicts.c
>
> Modified: trunk/subversion/include/svn_wc.h
> URL: http://svn.collab.net/viewvc/svn/trunk/subversion/include/svn_wc.h?pathrev=38903&r1=38902&r2=38903
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- trunk/subversion/include/svn_wc.h Fri Aug 21 03:47:03 2009
> (r38902)
> +++ trunk/subversion/include/svn_wc.h Fri Aug 21 05:56:39 2009
> (r38903)
> @@ -1263,8 +1263,9 @@ typedef enum svn_wc_conflict_action_t
> {
> svn_wc_conflict_action_edit, /* attempting to change text or
> props */
> svn_wc_conflict_action_add, /* attempting to add object */
> - svn_wc_conflict_action_delete /* attempting to delete object */
> -
> + svn_wc_conflict_action_delete, /* attempting to delete object */
> + svn_wc_conflict_action_replace /* attempting to replace object,
> + @since New in 1.7 */
> } svn_wc_conflict_action_t;
>
>
> @@ -1285,7 +1286,9 @@ typedef enum svn_wc_conflict_reason_t
> /** Object is unversioned */
> svn_wc_conflict_reason_unversioned,
> /** Object is already added or schedule-add. @since New in 1.6. */
> - svn_wc_conflict_reason_added
> + svn_wc_conflict_reason_added,
> + /** Object is already replaced. @since New in 1.7. */
> + svn_wc_conflict_reason_replaced
>
> } svn_wc_conflict_reason_t;
>
>
> Modified: trunk/subversion/libsvn_wc/tree_conflicts.c
> URL: http://svn.collab.net/viewvc/svn/trunk/subversion/libsvn_wc/tree_conflicts.c?pathrev=38903&r1=38902&r2=38903
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- trunk/subversion/libsvn_wc/tree_conflicts.c Fri Aug 21 03:47:03
> 2009 (r38902)
> +++ trunk/subversion/libsvn_wc/tree_conflicts.c Fri Aug 21 05:56:39
> 2009 (r38903)
> @@ -102,6 +102,7 @@ static const enum_mapping_t action_map[]
> { "edited", svn_wc_conflict_action_edit },
> { "deleted", svn_wc_conflict_action_delete },
> { "added", svn_wc_conflict_action_add },
> + { "replace", svn_wc_conflict_action_replace },
> { NULL, 0 }
> };
>
> @@ -113,6 +114,7 @@ static const enum_mapping_t reason_map[]
> { "missing", svn_wc_conflict_reason_missing },
> { "obstructed", svn_wc_conflict_reason_obstructed },
> { "added", svn_wc_conflict_reason_added },
> + { "replaced", svn_wc_conflict_reason_replaced },
> { NULL, 0 }
> };
>
>
> Modified: trunk/subversion/svn/tree-conflicts.c
> URL: http://svn.collab.net/viewvc/svn/trunk/subversion/svn/tree-conflicts.c?pathrev=38903&r1=38902&r2=38903
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- trunk/subversion/svn/tree-conflicts.c Fri Aug 21 03:47:03 2009
> (r38902)
> +++ trunk/subversion/svn/tree-conflicts.c Fri Aug 21 05:56:39 2009
> (r38903)
> @@ -42,6 +42,8 @@ action_str(const svn_wc_conflict_descrip
> return _("add");
> case svn_wc_conflict_action_delete:
> return _("delete");
> + case svn_wc_conflict_action_replace:
> + return _("replace");
> }
> return NULL;
> }
> @@ -64,6 +66,8 @@ reason_str(const svn_wc_conflict_descrip
> return _("missing");
> case svn_wc_conflict_reason_unversioned:
> return _("unversioned");
> + case svn_wc_conflict_reason_replaced:
> + return _("replace");
> }
> return NULL;
> }
> @@ -153,6 +157,9 @@ svn_cl__append_tree_conflict_info_xml(
> case svn_wc_conflict_action_delete:
> tmp = "delete";
> break;
> + case svn_wc_conflict_action_replace:
> + tmp = "replace";
> + break;
> default:
> SVN_ERR_MALFUNCTION();
> }
> @@ -179,6 +186,9 @@ svn_cl__append_tree_conflict_info_xml(
> case svn_wc_conflict_reason_unversioned:
> tmp = "unversioned";
> break;
> + case svn_wc_conflict_reason_replaced:
> + tmp = "replace";
> + break;
> default:
> SVN_ERR_MALFUNCTION();
> }
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=495&dsMessageId=2385981

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2385983
Received on 2009-08-21 15:05:38 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.