revision/date handling in the client library
From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-01-25 22:07:32 CET
Hello
Revision/date handling in the client library interface is less than
svn_revnum_t start_revision;
Sometimes both a number and a date are passed to the client library to
Based on an earlier idea from Branko, how about
enum svn_client_revision_type {
typedef struct svn_client_revision_s {
enum svn_client_revision_type type;
svn_revnum_t number;
} svn_client_revision_t;
#define SVN_CLIENT_REVISION_IS_UNSPECIFIED(r) \
/* return revision number in *number using ra if required */
Now have the application parse the command line into two
if (SVN_CLIENT_REVISION_IS_UNSPECIFIED(*rev))
SVN_ERR (svn_cl__get_revision_number (ra_lib, session, path, rev, &num));
Look at the ugly revision handling in svn_client_diff to see how bad
Comments?
-- Philip --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org For additional commands, e-mail: dev-help@subversion.tigris.orgReceived on Sat Oct 21 14:37:00 2006 |
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.