Revision: 78303
          http://sourceforge.net/p/brlcad/code/78303
Author:   starseeker
Date:     2021-02-22 14:29:43 +0000 (Mon, 22 Feb 2021)
Log Message:
-----------
Need to skip label if the rev is < 0

Modified Paths:
--------------
    brlcad/trunk/misc/repowork/repowork.cpp

Modified: brlcad/trunk/misc/repowork/repowork.cpp
===================================================================
--- brlcad/trunk/misc/repowork/repowork.cpp     2021-02-22 14:21:23 UTC (rev 
78302)
+++ brlcad/trunk/misc/repowork/repowork.cpp     2021-02-22 14:29:43 UTC (rev 
78303)
@@ -198,11 +198,13 @@
        long nrev =  rmap[s->commits[i].id.sha1];
        s->commits[i].svn_id = nrev;
 
-       std::cout << "Assigning new SVN rev " << nrev << " to " << 
s->commits[i].id.sha1 << "\n";
+       if (nrev > 0) {
+           std::cout << "Assigning new SVN rev " << nrev << " to " << 
s->commits[i].id.sha1 << "\n";
 
-       // Note:  this isn't guaranteed to be unique...  setting it mostly for
-       // the cases where it is.
-       s->rev_to_sha1[s->commits[i].svn_id] = s->commits[i].id.sha1;
+           // Note:  this isn't guaranteed to be unique...  setting it mostly 
for
+           // the cases where it is.
+           s->rev_to_sha1[s->commits[i].svn_id] = s->commits[i].id.sha1;
+       }
 
        // Update the message
        std::stringstream ss(s->commits[i].commit_msg);
@@ -242,9 +244,11 @@
                // the existing one, inserting a new line before the
                // current non-revision svn line, or skipping if the
                // nrev value is -1.
-               std::string nrevline = std::string("svn:revision:") + 
std::to_string(nrev);
-               nmsg.append(nrevline);
-               nmsg.append("\n");
+               if (nrev > 0) {
+                   std::string nrevline = std::string("svn:revision:") + 
std::to_string(nrev);
+                   nmsg.append(nrevline);
+                   nmsg.append("\n");
+               }
                // Any further svn:revision lines will be skipped - for
                // now at least, one to a commit.
                srev = true;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to