Very High Activity

Commits : Individual Commit

  Analyzed 3 days ago based on code collected 3 days ago.

Commit ID

Avatar Contributor: gstein Files Modified: 1
Date: 08-April-2012 at 00:13 Lines Added: 86
Repository: http://svn.apache.org/repos/asf/subversion/trunk /subversion/trunk Lines Removed: 31
Commit Comment: Ev2 shims:
First pass at the work necessary to deal with copyfrom_path values
that can be URLs. When we call svn_editor_copy(), we can only pass
relpath values.

This commit will map all incoming paths in the delta editor callbacks
into relpath values.

Note: strictly speaking, the copy source may not be within a working
copy, so it generally means an editor drive should be based on
repos_root so that all sources can be referenced. Thus, we map the
copyfrom paths a little bit different.
(future commit to update svn_editor.h docco with this point)

Note: I'm not entirely sure that normal paths in an Ev1 drive are ever
URLs. This mapping may only apply to copyfrom sources.

* subversion/libsvn_delta/compat.c:
(map_to_relpath, map_to_repos_relpath): new helpers to deal with
potential URLs, and turn them into relpaths.
(ev2_delete_entry): map the incoming PATH to a relpath
(ev2_add_directory): map the incoming PATH and COPYFROM_PATH to
relpaths. introduce a pseudo-scratch_pool and use it. reorder
copyfrom handling to make CHANGE be the definitive values.
(ev2_open_directory): map the incoming PATH to a relpath. introduce
a pseudo-scratch_pool and use it.
(ev2_absent_directory): map the incoming PATH to a relpath
(ev2_add_file): map the incoming PATH and COPYFROM_PATH to relpaths.
introduce a pseudo-scratch_pool and use it. reorder copyfrom
handling to make CHANGE be the definitive values.
(ev2_open_file): map the incoming PATH to a relpath. introduce a
pseudo-scratch_pool and use it.
(ev2_absent_file): map the incoming PATH to a relpath
 

Changes by Language

Language Code Added Code Removed Comments Added Comment Removed Blanks Added Blanks Removed
  C 69 31 6 0 11 0

Changes by File

Showing page 1 of 1
File Language Code Added Code Removed Comments Added Comment Removed Blanks Added Blanks Removed
subversion/libsvn_delta/compat.c C 69 31 6 0 11 0
 
 
 

Creative Commons License Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.