diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-04-26 13:42:11 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-04-26 13:42:11 +0200 |
commit | 377bfe7de7fd4305ea1ecc4ab1a361fa989a80d7 (patch) | |
tree | ccbcb2e484f3bb1a24e14d4c93225b47567f0eea | |
parent | 17478a68106012dfb1b81ec32ce554fb1637cbcf (diff) |
Issue warning if base and current versions differ during changelog initialization
-rw-r--r-- | odb/relational/changelog.cxx | 7 |
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)); |