You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2012/05/08 13:44:11 UTC
svn commit: r1335432 - /subversion/trunk/subversion/libsvn_fs_fs/fs.c
Author: stsp
Date: Tue May 8 11:44:10 2012
New Revision: 1335432
URL: http://svn.apache.org/viewvc?rev=1335432&view=rev
Log:
* subversion/libsvn_fs_fs/fs.c
(fs_hotcopy): Garbage collect intermediate 'path' variable.
Just use src_path and dst_path directly. No functional change.
Modified:
subversion/trunk/subversion/libsvn_fs_fs/fs.c
Modified: subversion/trunk/subversion/libsvn_fs_fs/fs.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/fs.c?rev=1335432&r1=1335431&r2=1335432&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/fs.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/fs.c Tue May 8 11:44:10 2012
@@ -295,11 +295,9 @@ fs_hotcopy(svn_fs_t *src_fs,
apr_pool_t *pool)
{
{
- const char *path = src_path;
-
SVN_ERR(svn_fs__check_fs(src_fs, FALSE));
SVN_ERR(initialize_fs_struct(src_fs));
- SVN_ERR(svn_fs_fs__open(src_fs, path, pool));
+ SVN_ERR(svn_fs_fs__open(src_fs, src_path, pool));
SVN_ERR(svn_fs_fs__initialize_caches(src_fs, pool));
SVN_ERR(fs_serialized_init(src_fs, pool, pool));
}
@@ -312,7 +310,7 @@ fs_hotcopy(svn_fs_t *src_fs,
Otherwise, it's not an FS yet --- possibly just an empty dir --- so
can't be opened.
*/
- SVN_ERR(svn_fs_fs__open(fs, path, pool));
+ SVN_ERR(svn_fs_fs__open(fs, dst_path, pool));
SVN_ERR(svn_fs_fs__initialize_caches(fs, pool));
#endif
SVN_ERR(fs_serialized_init(dst_fs, pool, pool));