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

[PATCH] "svnadmin dump --incremental" has no meaning without -r

From: Miha Vitorovic <mvitorovic_at_nil.si>
Date: Tue, 9 Dec 2008 12:03:48 +0100

Hi all,

I'm sending a patch for the first time, so forgive any errors...

Anyhoo, solving someone's "dump" problem on
http://www.svnforum.org/2017/viewtopic.php?t=7223 I saw that
the "svnadmin help dump" command doesn't indicate that the --incremental
switch can only be used if revision range
is also specified. So, please find this attached patch that fixes the help
message. Fill free to improve on the log message
or patch. I kind of found that obvious after reading the book, but I guess
some people don't :)

[[[
Fix svnadmin dump help message to bind --incremental switch to -r option.

* subversion/svnadmin/main.c
 (static const svn_opt_subcommand_desc2_t cmd_table[]): Group
  --incremental switch with the -r option in the dump subcommand
  help message.
]]]

Resending inline as I don't know
a) how to set mime type for attachments in my mailer,
b) what sort of a file redirecting windows svn command to a file produced
(Notepad++ said UCS-2 Little Endian).

---snip---
Index: main.c
===================================================================
--- main.c (revision 34617)
+++ main.c (working copy)
@@ -342,7 +342,7 @@
    {'r', 'q'} },
 
   {"dump", subcommand_dump, {0}, N_
- ("usage: svnadmin dump REPOS_PATH [-r LOWER[:UPPER]]
[--incremental]\n\n"
+ ("usage: svnadmin dump REPOS_PATH [-r LOWER[:UPPER]
[--incremental]]\n\n"
     "Dump the contents of filesystem to stdout in a 'dumpfile'\n"
     "portable format, sending feedback to stderr. Dump revisions\n"
     "LOWER rev through UPPER rev. If no revisions are given, dump all\n"
---snip---

Best regards,

---
  Miha Vitorovic
  Inženir v tehničnem področju
  Customer Support Engineer
   NIL Data Communications,  Tivolska cesta 48,  1000 Ljubljana,  Slovenia
   Phone +386 1 4746 500      Fax +386 1 4746 501     http://www.NIL.si
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=981601
Received on 2008-12-09 12:04:08 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.