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

[PATCH] 'hotcopy' chokes

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Sat, 21 Feb 2009 13:44:47 +0200 (Jerusalem Standard Time)

On my mirror of the repos, I see:

    % svnadmin hotcopy svn svn2
    svnadmin: Source 'svn\db\revs\1000.pack' is not a directory

A quick look suggests that the fix (a follow-up to my r35523) might be

[[[
Index: fs_fs.c
===================================================================
--- fs_fs.c (revision 36028)
+++ fs_fs.c (working copy)
@@ -1448,7 +1448,8 @@
   /* First, copy packed shards. */
   for (rev = 0; rev < min_unpacked_rev; rev += max_files_per_dir)
     {
- const char *packed_shard = apr_psprintf(iterpool, "%ld.pack", rev);
+ const char *packed_shard = apr_psprintf(iterpool, "%ld.pack",
+ rev / max_files_per_dir);
       const char *src_subdir_packed_shard;
       src_subdir_packed_shard = svn_path_join(src_subdir, packed_shard, pool);
 
]]]

but I haven't tested it.

Daniel

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1202430
Received on 2009-02-21 13:20:33 CET

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.