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