subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmpil...@apache.org
Subject svn commit: r1102901 - /subversion/trunk/subversion/svnrdump/svnrdump.c
Date Fri, 13 May 2011 21:20:24 GMT
Author: cmpilato
Date: Fri May 13 21:20:23 2011
New Revision: 1102901

URL: http://svn.apache.org/viewvc?rev=1102901&view=rev
Log:
Fix a silly buglet:

   $ svnrdump dump -r4:HEAD file:///path/to/repos
   svnrdump: E205000: Unsupported revision specifier used; use only
   integer values or 'HEAD'

* subversion/svnrdump/svnrdump.c
  (validate_and_resolve_revisions): Resolve revisions of kind
    svn_opt_revision_head to the HEAD revision (which we conveniently
    have as 'latest_revision').

Reported by: Mark Eichin <eichin@gmail.com>

Modified:
    subversion/trunk/subversion/svnrdump/svnrdump.c

Modified: subversion/trunk/subversion/svnrdump/svnrdump.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svnrdump/svnrdump.c?rev=1102901&r1=1102900&r2=1102901&view=diff
==============================================================================
--- subversion/trunk/subversion/svnrdump/svnrdump.c (original)
+++ subversion/trunk/subversion/svnrdump/svnrdump.c Fri May 13 21:20:23 2011
@@ -580,6 +580,11 @@ validate_and_resolve_revisions(opt_baton
     {
       provided_start_rev = opt_baton->start_revision.value.number;
     }
+  else if (opt_baton->start_revision.kind == svn_opt_revision_head)
+    {
+      opt_baton->start_revision.kind = svn_opt_revision_number;
+      opt_baton->start_revision.value.number = latest_revision;
+    }
   else if (opt_baton->start_revision.kind == svn_opt_revision_unspecified)
     {
       opt_baton->start_revision.kind = svn_opt_revision_number;
@@ -614,6 +619,11 @@ validate_and_resolve_revisions(opt_baton
       else
         opt_baton->end_revision.value.number = latest_revision;
     }
+  else if (opt_baton->end_revision.kind == svn_opt_revision_head)
+    {
+      opt_baton->end_revision.kind = svn_opt_revision_number;
+      opt_baton->end_revision.value.number = latest_revision;
+    }
 
   if (opt_baton->end_revision.kind != svn_opt_revision_number)
     {



Mime
View raw message