Revision: 76514
http://sourceforge.net/p/brlcad/code/76514
Author: starseeker
Date: 2020-07-26 23:29:23 +0000 (Sun, 26 Jul 2020)
Log Message:
-----------
List the problem sha1s for which we are generating outputs in a file.
Modified Paths:
--------------
brlcad/trunk/misc/repoconv/verify/verify.cpp
Modified: brlcad/trunk/misc/repoconv/verify/verify.cpp
===================================================================
--- brlcad/trunk/misc/repoconv/verify/verify.cpp 2020-07-26 23:12:50 UTC
(rev 76513)
+++ brlcad/trunk/misc/repoconv/verify/verify.cpp 2020-07-26 23:29:23 UTC
(rev 76514)
@@ -220,7 +220,7 @@
return 0;
}
-int verify_repos_cvs(cmp_info &info, std::string git_repo, std::string
cvs_repo) {
+int verify_repos_cvs(std::ofstream &cvs_problem_sha1s, cmp_info &info,
std::string git_repo, std::string cvs_repo) {
std::string cvs_cmd;
if (info.branch_svn == std::string("trunk")) {
cvs_cmd = std::string("cvs -d ") + cvs_repo + std::string(" -Q co -ko
-D \"") + info.cvs_date + std::string("\" -P brlcad");
@@ -255,6 +255,8 @@
if (diff_ret) {
std::cerr << "CVS vs Git: diff test failed, r" << info.rev << ",
branch " << info.branch_svn << "\n";
build_cvs_tree(info.sha1);
+ cvs_problem_sha1s << info.sha1 << "\n";
+ cvs_problem_sha1s.flush();
return 1;
}
@@ -411,6 +413,8 @@
long max_rev = LONG_MAX;
long min_rev = 0;
+ std::ofstream cvs_problem_sha1s("cvs_problem_sha1.txt",
std::ifstream::binary);
+
try
{
cxxopts::Options options(argv[0], " - verify svn->git conversion");
@@ -564,7 +568,7 @@
// If we're old enough and have the cvs repository, check it
if (cvs_repo.length() && info.timestamp < cvs_maxtime) {
- cvs_err = verify_repos_cvs(info, git_repo, cvs_repo);
+ cvs_err = verify_repos_cvs(cvs_problem_sha1s, info, git_repo,
cvs_repo);
}
// If we have the SVN repo and a revision, check SVN
@@ -592,6 +596,8 @@
}
}
}
+
+ cvs_problem_sha1s.close();
}
// Local Variables:
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