[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] svn_repos_create should allow fs_config being null

From: Chia-liang Kao <clkao_at_clkao.org>
Date: 2005-09-30 01:28:09 CEST

==== Patch <repos-create> level 1
Source: [No source]
Target: 65390229-12b7-0310-b90b-f21a5aa7ec8e:/trunk:16360
        (http://svn.collab.net/repos/svn)
Log:
Fix check-swig-pl failures.

* libsvn_repos/repos.c:
  (svn_repos_create) Allow fs_config to be null, as svn_repos.h says so.

=== subversion/libsvn_repos/repos.c
==================================================================
--- subversion/libsvn_repos/repos.c (revision 16360)
+++ subversion/libsvn_repos/repos.c (patch repos-create level 1)
@@ -1665,8 +1665,10 @@
   repos->format = SVN_REPOS__FORMAT_NUMBER;
 
   /* Discover the type of the filesystem we are about to create. */
- repos->fs_type = apr_hash_get (fs_config, SVN_FS_CONFIG_FS_TYPE,
- APR_HASH_KEY_STRING);
+ if (fs_config) {
+ repos->fs_type = apr_hash_get (fs_config, SVN_FS_CONFIG_FS_TYPE,
+ APR_HASH_KEY_STRING);
+ }
   if (! repos->fs_type)
     repos->fs_type = DEFAULT_FS_TYPE;
 

==== BEGIN SVK PATCH BLOCK ====
Version: svk 1.04 (freebsd)

eJyFk79u2zAQxj17KvoEHBQgbitb/CNZcgDDGZKmCBAEsVugk0BRJ1sNKxoS5cQoOznICxTp0ofs
K5SSY8NDimggwLv7fvdRR56Xs5MJNuOxZxzsmemXy9HommuxOLI7JzCQ5lqVjm8krEA61Eg1d5gp
+HewWc3LOejxGFtxuBWftYIdhDWMhGtVVE7UwmJdAjjYsIlvJsRMqJUabJNqCUVcKqVtM+xHmNhs
3HgSUlUQN9qm3m/qiYPZVpDmJQjbcN1UVnWygrLKVdEydxzacPxnzoHA4D2QvgAk9AA4kHlSraxB
WKqqdfAqnezpbHe8LJfgUPw/7qBd+6I19Cqfbvltli+Xch1ruNcpSM3bnpQYRjxfYA44C7HnhRHG
jCWJCEmahRw85gyHdmpXnc7D45uHx/dv+53N07fOr066eVr86fwdbH7zPEPHWRULVWT5vId+dJH9
Tq9v4ovT6UV8efY1ns5uPl197J3YzM8JO5xZe9xnK5B4mYAgpdTHPhNJkjHhM8KCICU+sVaaiWES
mPP8HokFiFu3usvn7lKijOeyLqHqd7vv0Ev/a2RbH++jsSiBa+ihUynVHdqbR1qhBFBRS/kB8Qrt
Bf0FqvjaBlS/ay2YNuhuKeMxMQ4h27s9a6/7aPS5yJvxcXkUGPsYllwv7MsoYWU3dZ2n9s4PdFkX
t80QAxp4Dg1M4NPIIyRyMUmGrkex5yaRl7gZwdznfAgihH+5nSt8
==== END SVK PATCH BLOCK ====

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Sep 30 01:32:21 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.