You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2010/02/15 16:11:48 UTC

svn commit: r910234 - /subversion/trunk/subversion/libsvn_wc/wc_db.c

Author: hwright
Date: Mon Feb 15 15:11:48 2010
New Revision: 910234

URL: http://svn.apache.org/viewvc?rev=910234&view=rev
Log:
Use svn_wc_get_adm_dir() for determining the name of the administrative
directory in wc-ng.  (The reason we do this at runtime are long and sordid,
but suffice it to say that certain windows users are appeased.)

* subversion/libsvn_wc/wc_db.c
  (PRISTINE_STORAGE_RELPATH, PRISTINE_TEMPDIR_RELPATH, WCROOT_TEMPDIR_RELPATH):
    Don't include the '.svn' part of the path name.
  (get_pristine_fname): Include the runtime result of the admin directory
    for computing this path.
  (svn_wc__db_pristine_get_tempdir): Same.
  (svn_wc__db_temp_wcroot_tempdir): Same.

Modified:
    subversion/trunk/subversion/libsvn_wc/wc_db.c

Modified: subversion/trunk/subversion/libsvn_wc/wc_db.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/wc_db.c?rev=910234&r1=910233&r2=910234&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc_db.c (original)
+++ subversion/trunk/subversion/libsvn_wc/wc_db.c Mon Feb 15 15:11:48 2010
@@ -58,9 +58,9 @@
 #define SDB_FILE  "wc.db"
 #define SDB_FILE_UPGRADE "wc.db.upgrade"
 
-#define PRISTINE_STORAGE_RELPATH ".svn/pristine"
-#define PRISTINE_TEMPDIR_RELPATH ".svn"
-#define WCROOT_TEMPDIR_RELPATH       ".svn/tmp"
+#define PRISTINE_STORAGE_RELPATH "pristine"
+#define PRISTINE_TEMPDIR_RELPATH ""
+#define WCROOT_TEMPDIR_RELPATH   "tmp"
 
 
 /*
@@ -461,9 +461,11 @@
   /* ### need to fix this to use a symbol for ".svn". we don't need
      ### to use join_many since we know "/" is the separator for
      ### internal canonical paths */
-  base_dir_abspath = svn_dirent_join(pdh->wcroot->abspath,
-                                     PRISTINE_STORAGE_RELPATH,
-                                     scratch_pool);
+  base_dir_abspath = svn_dirent_join_many(scratch_pool,
+                                          pdh->wcroot->abspath,
+                                          svn_wc_get_adm_dir(scratch_pool),
+                                          PRISTINE_STORAGE_RELPATH,
+                                          NULL);
 
   /* We should have a valid checksum and (thus) a valid digest. */
   SVN_ERR_ASSERT(hexdigest != NULL);
@@ -2314,9 +2316,11 @@
                               scratch_pool, scratch_pool));
   VERIFY_USABLE_PDH(pdh);
 
-  *temp_dir_abspath = svn_dirent_join(pdh->wcroot->abspath,
-                                      PRISTINE_TEMPDIR_RELPATH,
-                                      result_pool);
+  *temp_dir_abspath = svn_dirent_join_many(result_pool,
+                                           pdh->wcroot->abspath,
+                                           svn_wc_get_adm_dir(scratch_pool),
+                                           PRISTINE_TEMPDIR_RELPATH,
+                                           NULL);
   return SVN_NO_ERROR;
 }
 
@@ -5564,9 +5568,11 @@
                               scratch_pool, scratch_pool));
   VERIFY_USABLE_PDH(pdh);
 
-  *temp_dir_abspath = svn_dirent_join(pdh->wcroot->abspath,
-                                      WCROOT_TEMPDIR_RELPATH,
-                                      result_pool);
+  *temp_dir_abspath = svn_dirent_join_many(result_pool,
+                                           pdh->wcroot->abspath,
+                                           svn_wc_get_adm_dir(scratch_pool),
+                                           WCROOT_TEMPDIR_RELPATH,
+                                           NULL);
   return SVN_NO_ERROR;
 }