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

[PATCH] code simplification

From: Kamesh Jayachandran <kamesh_at_collab.net>
Date: 2007-04-04 11:57:00 CEST

Hi All,
Find the attached patch and log.

With regards
Kamesh Jayachandran

[[[
Code simplification.

* subversion/libsvn_subr/opt.c
   (svn_opt_parse_path):
    No need to parse the constant strings 'head' and 'base' and set the
    start_revision.kind, rather set them directly.
    
Patch by: kameshj
]]]

Index: subversion/libsvn_subr/opt.c
===================================================================
--- subversion/libsvn_subr/opt.c (revision 24409)
+++ subversion/libsvn_subr/opt.c (working copy)
@@ -745,16 +745,9 @@
 
           if (path[i + 1] == '\0') /* looking at empty peg revision */
             {
- if (is_url)
- {
- ret = svn_opt_parse_revision(&start_revision, &end_revision,
- "head", pool);
- }
- else
- {
- ret = svn_opt_parse_revision(&start_revision, &end_revision,
- "base", pool);
- }
+ ret = 0;
+ start_revision.kind = is_url ? svn_opt_revision_head
+ : svn_opt_revision_base;
             }
           else /* looking at non-empty peg revision */
             {

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Apr 4 11:57:18 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.