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

Re: [PATCH] v4 Fix svnversion message as follow-up to r922176

From: Stefan Sperling <stsp_at_elego.de>
Date: Fri, 2 Apr 2010 14:55:00 +0200

On Fri, Apr 02, 2010 at 11:06:32AM +0200, Daniel Näslund wrote:
> gstein pointed out that I should use SVN_IS_VALID_REVNUM(). Fixed!

> @@ -290,6 +290,16 @@ main(int argc, const char *argv[])
> return EXIT_FAILURE;
> }
>
> + if (SVN_IS_VALID_REVNUM(res->min_rev))

Doesn't this reverse the meaning of what you had before?

Maybe use:

     if (! SVN_IS_VALID_REVNUM(res->min_rev))

or use

     if (SVN_IS_INVALID_REVNUM(res->min_rev))

if there is such a macro.

> + {
> + /* Local uncommited modifications, no revision info was found. */
> + SVN_INT_ERR(svn_cmdline_printf(pool, _("Uncommitted local addition "
> + "copy, or move%s"),
> + no_newline ? "" : "\n"));
> + svn_pool_destroy(pool);
> + return EXIT_SUCCESS;
> + }
> +
> /* Build compact '123[:456]M?S?' string. */
> SVN_INT_ERR(svn_cmdline_printf(pool, "%ld", res->min_rev));
> if (res->min_rev != res->max_rev)
Received on 2010-04-02 14:55:36 CEST

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.