subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hwri...@apache.org
Subject svn commit: r1327620 - /subversion/trunk/subversion/svnrdump/load_editor.c
Date Wed, 18 Apr 2012 18:46:21 GMT
Author: hwright
Date: Wed Apr 18 18:46:21 2012
New Revision: 1327620

URL: http://svn.apache.org/viewvc?rev=1327620&view=rev
Log:
Remove some now-unrequired path manipulation in some shim callbacks.

* subversion/svnrdump/load_editor.c
  (fetch_base_func, fetch_props_func, fetch_kind_func): Don't bother massaging
    the path, since this is now guaranteed to be a relpath.

Modified:
    subversion/trunk/subversion/svnrdump/load_editor.c

Modified: subversion/trunk/subversion/svnrdump/load_editor.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svnrdump/load_editor.c?rev=1327620&r1=1327619&r2=1327620&view=diff
==============================================================================
--- subversion/trunk/subversion/svnrdump/load_editor.c (original)
+++ subversion/trunk/subversion/svnrdump/load_editor.c Wed Apr 18 18:46:21 2012
@@ -397,11 +397,6 @@ fetch_base_func(const char **filename,
   svn_stream_t *fstream;
   svn_error_t *err;
 
-  if (svn_path_is_url(path))
-    path = svn_uri_skip_ancestor(rb->pb->root_url, path, scratch_pool);
-  else if (path[0] == '/')
-    path += 1;
-
   if (! SVN_IS_VALID_REVNUM(base_revision))
     base_revision = rb->rev - 1;
 
@@ -438,11 +433,6 @@ fetch_props_func(apr_hash_t **props,
   struct revision_baton *rb = baton;
   svn_node_kind_t node_kind;
 
-  if (svn_path_is_url(path))
-    path = svn_uri_skip_ancestor(rb->pb->root_url, path, scratch_pool);
-  else if (path[0] == '/')
-    path += 1;
-
   if (! SVN_IS_VALID_REVNUM(base_revision))
     base_revision = rb->rev - 1;
 
@@ -484,11 +474,6 @@ fetch_kind_func(svn_kind_t *kind,
   struct revision_baton *rb = baton;
   svn_node_kind_t node_kind;
 
-  if (svn_path_is_url(path))
-    path = svn_uri_skip_ancestor(rb->pb->root_url, path, scratch_pool);
-  else if (path[0] == '/')
-    path += 1;
-
   if (! SVN_IS_VALID_REVNUM(base_revision))
     base_revision = rb->rev - 1;
 



Mime
View raw message