diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-06-02 22:16:17 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-06-02 22:16:17 +0100 |
| commit | 52528d511935d95b1a2f0dbf62bcd2af3a6288ad (patch) | |
| tree | 0723ff67b926428060b0fb11b1546d10fe3de5c7 /src/cpl.cc | |
| parent | b172ecbede672bdef982e5b45376ac3517440263 (diff) | |
Tweaks to diffing routines.
Diffstat (limited to 'src/cpl.cc')
| -rw-r--r-- | src/cpl.cc | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -256,8 +256,10 @@ CPL::write_to_assetmap (xmlpp::Node* node) const bool CPL::equals (CPL const & other, EqualityOptions opt, boost::function<void (NoteType, string)> note) const { - if (_name != other._name) { - note (ERROR, "names differ"); + if (_name != other._name && !opt.cpl_names_can_differ) { + stringstream s; + s << "names differ: " << _name << " vs " << other._name << "\n"; + note (ERROR, s.str ()); return false; } |
