#
# patch "ChangeLog"
# from [d17897188e1466631529c539c0a8ea8288eae1e5]
# to [45d52de4c1d3b02795d3e177dc46a7868469cbb1]
#
# patch "commands.cc"
# from [1f63172b2efdc7f3b14c034b5a0a101c3433c6c8]
# to [619c97f154a148333f4d045bfab003359c533810]
#
# patch "contrib/monoprof.sh"
# from [1bb2ed75727369fc101d6852b914f8346edaaa5a]
# to [920671704fc04418a746009cffaa8a1452a6bf85]
#
# patch "pcdv.cc"
# from [1a89fcfc9932fe819917b1f5d09cf5e097fe4900]
# to [8f5d9105a82f69c6aea06bd547679403f979846f]
#
# patch "pcdv.hh"
# from [99cd22bde02f3a20af2fd2afc574a02248bf3884]
# to [e53433a7651985f8a0aeff23660f7d21f40eb813]
#
--- ChangeLog
+++ ChangeLog
@@ -1,3 +1,10 @@
+2005-06-29 Timothy Brownawell
+
+ * pcdv.{cc,hh}: many changes, including adding test code.
+ Does not work properly on test code.
+ * commands.cc: pcdv runs new test code first
+ * contrib/monoprof.sh: pcdv test uses different file now
+
2005-06-27 Timothy Brownawell
* new files: pcdv.{cc,hh}
--- commands.cc
+++ commands.cc
@@ -3822,6 +3822,9 @@
"precise-cdv merge FILENAME in the two given revisions",
OPT_NONE)
{
+ if (!pcdv_test())
+ return;
+
if (args.size() != 3)
throw usage(name);
@@ -3849,9 +3852,9 @@
map files;
file_state empty = file_state(vector(), string());
std::set heads;
+ file_state p(empty);
while (!roots.empty())
{
- file_state p(empty);
vector const & ps(parents[roots.front()].second);
if (ps.size() == 0)
p = empty;
@@ -3923,8 +3926,8 @@
for (vector::iterator j = i->left.begin();
j != i->left.end(); ++j)
cout<<" "<<*j;
+ lastok = true;
}
- lastok = true;
}
}
}
--- contrib/monoprof.sh
+++ contrib/monoprof.sh
@@ -382,8 +382,8 @@
pushd ${BUILDDIR}
profstart
#run:
- mtn pcdv 01b72a38e45356d4df0525aec6562e1a6acbf1e1 \
- 53b169c41e5d509dc2bd6d6977e6582ccf78b86d HACKING
+ mtn pcdv f02571e9d874b48e01921f106107f87257607f0a \
+ 6edbbc3496b85a5032fbe0e82347d819a6167206 commands.cc
profend
#cleanup:
popd
--- pcdv.cc
+++ pcdv.cc
@@ -1,10 +1,41 @@
#include
#include