Re: svnadmin verify
From: Mark Clements <gmane_at_kennel17.co.uk>
Date: 2007-04-25 16:09:46 CEST
Thanks. I wrote a script to output the exit code of the supplied command, and got the following from a new repository:
$ show_exit_code "svnadmin verify ."
...and the following after I added a couple of garbage characters to db/revs/3
$ show_exit_code "svnadmin verify ."
With different corruptions I got different error messages, but they all began with "svnadmin:", so I guess that's what I need to grep for. The return code was always 1 though. I guess that answers both my questions! Thanks for your help.
One further question - is there any way you can think of for the script to get the revision number of the bad revision? It's not a massive issue, as it will need manual intervention anyway and you can check then, but it might be a useful thing to send in the error output, if possible.
- Mark Clements
Hope this helps
Mark Clements <gmane@kennel17.co.uk> wrote:
I have often seen it advised that you run svnadmin verify as part of your
Is this correct?
If so what return value should I be looking for to signify that there was an
(Or if I have misunderstood what svnadmin verify does then please enlighten
- Mark Clements
---------------------------------------------------------------------
------------------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.