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

Re: svn commit: r26195 - in trunk: . subversion/include subversion/libsvn_subr subversion/tests/libsvn_subr

From: Joe Swatosh <joe.swatosh_at_gmail.com>
Date: 2007-08-20 07:37:28 CEST

Hi Blair

On 8/19/07, blair@tigris.org <blair@tigris.org> wrote:
> Author: blair
> Date: Sun Aug 19 19:01:22 2007
> New Revision: 26195
>
> Log:
> Add a new svn_parse_revision_number() method that behaves much like
> strtol() but returns only non-negative svn_revnum_t's.
>
> * subversion/include/svn_types.h
> (svn_parse_revision_number):
> New declaration.
>

>
> * subversion/tests/libsvn_subr/revision-test.c:
> New file based off of subversion/tests/libsvn_subr/time-test.c to
> test svn_parse_revision_number().
>

>

I needed the patche below to get it to compile (you must be using C++?).

--
Joe
Index: subversion/tests/libsvn_subr/revision-test.c
===================================================================
--- subversion/tests/libsvn_subr/revision-test.c        (revision 26199)
+++ subversion/tests/libsvn_subr/revision-test.c        (working copy)
@@ -26,8 +26,6 @@
                            svn_test_opts_t *opts,
                            apr_pool_t *pool)
 {
-  *msg = "test svn_parse_revision_number";
-
   const char **t;
   const char *failure_tests[] = {
@@ -44,6 +42,8 @@
     NULL
   };
+  *msg = "test svn_parse_revision_number";
+
   /* These tests should succeed. */
   for (t=success_tests; *t; ++t)
     {
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Aug 20 07:35:11 2007

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.