aboutsummaryrefslogtreecommitdiff
path: root/odb
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-04-26 13:42:11 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-04-26 13:42:11 +0200
commit377bfe7de7fd4305ea1ecc4ab1a361fa989a80d7 (patch)
treeccbcb2e484f3bb1a24e14d4c93225b47567f0eea /odb
parent17478a68106012dfb1b81ec32ce554fb1637cbcf (diff)
Issue warning if base and current versions differ during changelog initialization
Diffstat (limited to 'odb')
-rw-r--r--odb/relational/changelog.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/odb/relational/changelog.cxx b/odb/relational/changelog.cxx
index 2bbd04e..585a2c4 100644
--- a/odb/relational/changelog.cxx
+++ b/odb/relational/changelog.cxx
@@ -683,8 +683,13 @@ namespace relational
else
{
// In this case we have to create an empty model at the base
- // version and a changeset.
+ // version and a changeset. We do it this way instead of putting
+ // everything into the base model in order to support adding new
+ // header files to the project.
//
+ cerr << out_name << ": warning: base and current versions " <<
+ "differ; assuming base model is empty" << endl;
+
model& nm (g.new_node<model> (mv.base));
g.new_edge<contains_model> (*cl, nm);
changeset& c (diff (nm, m, *cl));