summaryrefslogtreecommitdiff
path: root/odb/relational/changelog.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-03-22 11:11:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-04-10 18:46:44 +0200
commit0fc39391cd7b5a5f0b362bed6c21e4c642a0accc (patch)
tree193646c134e9e0fafd96bf20266923800e0a7a51 /odb/relational/changelog.cxx
parent367c524af8ecfe066991bfaa8489b230f6e59446 (diff)
Add --changelog{,-in,-out,-dir} options
Diffstat (limited to 'odb/relational/changelog.cxx')
-rw-r--r--odb/relational/changelog.cxx21
1 files changed, 11 insertions, 10 deletions
diff --git a/odb/relational/changelog.cxx b/odb/relational/changelog.cxx
index de5e6f7..7435f05 100644
--- a/odb/relational/changelog.cxx
+++ b/odb/relational/changelog.cxx
@@ -142,7 +142,8 @@ namespace relational
generate (model& m,
model_version const& mv,
changelog* old,
- string const& name)
+ std::string const& in_name,
+ std::string const& out_name)
{
cutl::shared_ptr<changelog> cl (new (shared) changelog);
graph& g (*cl);
@@ -151,13 +152,13 @@ namespace relational
{
if (!mv.open)
{
- cerr << name << ": error: unable to initialize changelog because " <<
- "current version is closed" << endl;
+ cerr << out_name << ": error: unable to initialize changelog " <<
+ "because current version is closed" << endl;
throw operation_failed ();
}
- cerr << name << ": info: initializing changelog with base version " <<
- m.version () << endl;
+ cerr << out_name << ": info: initializing changelog with base " <<
+ "version " << m.version () << endl;
g.new_edge<contains_model> (*cl, g.new_node<model> (m, g));
return cl;
@@ -174,7 +175,7 @@ namespace relational
if (mv.current < cver)
{
- cerr << name << ": error: latest changelog version is greater " <<
+ cerr << in_name << ": error: latest changelog version is greater " <<
"than current version" << endl;
throw operation_failed ();
}
@@ -199,8 +200,8 @@ namespace relational
{
qnames& n (*cs.names_begin ());
- cerr << name << ": error: current version is closed" << endl;
- cerr << name << ": info: first new change is " <<
+ cerr << out_name << ": error: current version is closed" << endl;
+ cerr << out_name << ": info: first new change is " <<
n.nameable ().kind () << " '" << n.name () << "'" << endl;
throw operation_failed ();
@@ -242,8 +243,8 @@ namespace relational
{
qnames& n (*cs.names_begin ());
- cerr << name << ": error: current version is closed" << endl;
- cerr << name << ": info: first new change is " <<
+ cerr << out_name << ": error: current version is closed" << endl;
+ cerr << out_name << ": info: first new change is " <<
n.nameable ().kind () << " '" << n.name () << "'" << endl;
throw operation_failed ();