subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sti...@apache.org
Subject svn commit: r1623317 - /subversion/trunk/subversion/svnlook/svnlook.c
Date Mon, 08 Sep 2014 08:03:04 GMT
Author: stilor
Date: Mon Sep  8 08:03:03 2014
New Revision: 1623317

URL: http://svn.apache.org/r1623317
Log:
Report transaction name rather than revision number in error message from 'pget'
if it was run with -t option.

Obvious fix.

* subversion/svnlook/svnlook.c
  (do_pget): Report c->txn_name if the revision number is invalid.

Modified:
    subversion/trunk/subversion/svnlook/svnlook.c

Modified: subversion/trunk/subversion/svnlook/svnlook.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svnlook/svnlook.c?rev=1623317&r1=1623316&r2=1623317&view=diff
==============================================================================
--- subversion/trunk/subversion/svnlook/svnlook.c (original)
+++ subversion/trunk/subversion/svnlook/svnlook.c Mon Sep  8 08:03:03 2014
@@ -1706,9 +1706,14 @@ do_pget(svnlook_ctxt_t *c,
        if (path == NULL)
          {
            /* We're operating on a revprop (e.g. c->is_revision). */
-           err_msg = apr_psprintf(pool,
-                                  _("Property '%s' not found on revision %ld"),
-                                  propname, c->rev_id);
+           if (SVN_IS_VALID_REVNUM(c->rev_id))
+             err_msg = apr_psprintf(pool,
+                                    _("Property '%s' not found on revision %ld"),
+                                    propname, c->rev_id);
+           else
+             err_msg = apr_psprintf(pool,
+                                    _("Property '%s' not found on transaction %s"),
+                                    propname, c->txn_name);
          }
        else
          {



Mime
View raw message