Revision: 76493
http://sourceforge.net/p/brlcad/code/76493
Author: starseeker
Date: 2020-07-25 14:20:15 +0000 (Sat, 25 Jul 2020)
Log Message:
-----------
Tweak the svn branch for dmtogl
Modified Paths:
--------------
brlcad/trunk/misc/repowork/repowork.cpp
Modified: brlcad/trunk/misc/repowork/repowork.cpp
===================================================================
--- brlcad/trunk/misc/repowork/repowork.cpp 2020-07-25 14:17:54 UTC (rev
76492)
+++ brlcad/trunk/misc/repowork/repowork.cpp 2020-07-25 14:20:15 UTC (rev
76493)
@@ -99,8 +99,23 @@
if (std::regex_search(note, svnidvar, svnid)) {
s->commits[i].svn_id = std::string(svnidvar[1]);
std::cout << "Identified revision " << s->commits[i].svn_id << "\n";
+
+ // We wrote the wrong SVN branch name for older dmtogl branches -
+ // names were deliberately collapsed in git conversion, but we
+ // should reflect the original SVN history in the metadata. Undo
+ // the mapping for the label based on revision number.
+ long revnum = std::stol(s->commits[i].svn_id);
+ if (revnum < 36472) {
+ std::regex bstr_regex("svn:branch:dmtogl");
+ std::smatch bmatch;
+ if (std::regex_search(s->commits[i].notes_string, bmatch,
bstr_regex)) {
+ std::string branch_fixed =
std::regex_replace(s->commits[i].notes_string, bstr_regex,
"svn:branch:dmtogl-branch");
+ s->commits[i].notes_string = branch_fixed;
+ }
+ }
}
+
n.close();
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits