summaryrefslogtreecommitdiff
path: root/src/convert.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-02-27 00:40:22 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-02-27 02:31:08 -0600
commit0efdc0cf6f47278184eecdf47137b6253043e027 (patch)
tree1d67a02b3b7a3c202f505b420747c1aa2e7f48e7 /src/convert.cc
parentbb0c5344145cd79fa54a92f236628eebbe6f2f68 (diff)
downloadfork-ledger-0efdc0cf6f47278184eecdf47137b6253043e027.tar.gz
fork-ledger-0efdc0cf6f47278184eecdf47137b6253043e027.tar.bz2
fork-ledger-0efdc0cf6f47278184eecdf47137b6253043e027.zip
The "id" of an item now maps to its UUID
Diffstat (limited to 'src/convert.cc')
-rw-r--r--src/convert.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/convert.cc b/src/convert.cc
index da4569cc..15995d05 100644
--- a/src/convert.cc
+++ b/src/convert.cc
@@ -74,21 +74,21 @@ value_t convert_command(call_scope_t& args)
post->amount.in_place_negate();
}
- string ref = (xact->has_tag(_("SHA1")) ?
- xact->get_tag(_("SHA1"))->to_string() :
+ string ref = (xact->has_tag(_("UUID")) ?
+ xact->get_tag(_("UUID"))->to_string() :
sha1sum(reader.get_last_line()));
checksum_map_t::const_iterator entry = journal.checksum_map.find(ref);
if (entry != journal.checksum_map.end()) {
INFO(file_context(reader.get_pathname(),
reader.get_linenum())
- << "Ignoring known SHA1 " << ref);
+ << "Ignoring known UUID " << ref);
checked_delete(xact); // ignore it
continue;
}
- if (report.HANDLED(rich_data) && ! xact->has_tag(_("SHA1")))
- xact->set_tag(_("SHA1"), string_value(ref));
+ if (report.HANDLED(rich_data) && ! xact->has_tag(_("UUID")))
+ xact->set_tag(_("UUID"), string_value(ref));
if (xact->posts.front()->account == NULL) {
if (account_t * acct =