Branko Čibej wrote:
>C. Michael Pilato wrote:
>
>>Branko Čibej <brane@xbc.nu> writes:
>>
>>>What about the infamous svn:this-dir in the entries file? IMHO we should
>>>get rid of ir before beta; it was a debugging aid, and we don't need it
>>>any more.
>>>
>>+1. Karl fusses about this every time he sees it.
>>
>O.K., I'm on it. :-)
>
>
How about this, then? It looks like a simple "svn up" will automagically
upgrade all the entries files.If I hear no objections (and the tests
pass) I'll commit this tomorrow.
[[[
Use "" instead of "svn:this_dir" in the entries file.
* subversion/include/svn_wc.h (SVN_WC_ENTRIES_THIS_DIR): Define to "".
* subversion/libsvn_wc/entries.c (svn_wc__atts_to_entry): It the
entry name is "svn:this_dir", change it to SVN_WC_ENTRIES_THIS_DIR.
]]]
Index: subversion/include/svn_wc.h
===================================================================
--- subversion/include/svn_wc.h (revision 7710)
+++ subversion/include/svn_wc.h (working copy)
@@ -785,7 +785,7 @@
/** How an entries file's owner dir is named in the entries file. */
-#define SVN_WC_ENTRY_THIS_DIR "svn:this_dir"
+#define SVN_WC_ENTRY_THIS_DIR ""
/** Set @a *entry to an entry for @a path, allocated in the access baton
Index: subversion/libsvn_wc/entries.c
===================================================================
--- subversion/libsvn_wc/entries.c (revision 7710)
+++ subversion/libsvn_wc/entries.c (working copy)
@@ -177,6 +177,12 @@
/* Find the name and set up the entry under that name. */
name = apr_hash_get (atts, SVN_WC__ENTRY_ATTR_NAME, APR_HASH_KEY_STRING);
+ /* XXX Replace the obsolete "svn:this_dir".
+ XXX This code should go away by 1.0 */
+ {
+ if (name && 0 == strcmp(name, "svn:this_dir"))
+ name = SVN_WC_ENTRY_THIS_DIR;
+ }
entry->name = name ? name : SVN_WC_ENTRY_THIS_DIR;
/* Attempt to set revision (resolve_to_defaults may do it later, too) */
--
Brane Čibej <brane_at_xbc.nu> http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 12 04:30:43 2003