From 377bfe7de7fd4305ea1ecc4ab1a361fa989a80d7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 26 Apr 2013 13:42:11 +0200 Subject: Issue warning if base and current versions differ during changelog initialization --- odb/relational/changelog.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'odb') 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 (mv.base)); g.new_edge (*cl, nm); changeset& c (diff (nm, m, *cl)); -- cgit v1.1