[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-commits-diffs] Revision 7f1c2d71bc2c0ade72809ac5835c10f38b322f
From: |
monotone |
Subject: |
[Monotone-commits-diffs] Revision 7f1c2d71bc2c0ade72809ac5835c10f38b322faa |
Date: |
Mon, 2 Apr 2007 06:05:16 +0200 |
-----------------------------------------------------------------
Revision: 7f1c2d71bc2c0ade72809ac5835c10f38b322faa
Ancestor: 6ae6de16b31495a773ac3002505ad51f2e4a8616
Author: address@hidden
Date: 2007-04-02T00:01:54
Branch: net.venge.monotone
Modified files:
automate.cc cert.cc database.cc database.hh key_store.cc
key_store.hh netsync.cc packet.cc rcs_import.cc revision.cc
tests/automate_put_revision_unknown_file/__driver__.lua
ChangeLog:
* packet.cc (packet_db_writer): Move sanity checks from consume_*
functions here...
* database.cc (put_file, put_file_version, put_revision)
(put_key, put_revision_cert): ...to here...
* key_store.cc (put_key_pair): ...and here.
(ensure_in_database): Restructure on assumption that db.put_key
will do nothing if the key is already in the database.
* database.hh (database::put_revision, database::put_key)
(database::put_revision_cert): Returns bool.
* key_store.hh (key_store::put_key_pair): Returns bool.
* automate.cc (put_file): Unconditionally call db.put_file.
In 2-arg case, always use db.put_file_version.
(put_revision): Unconditionally call db.put_revision.
If that returns false, issue an error unless the revision exists.
* cert.cc (calculate_cert): Unconditionally call db.put_key.
* netsync.cc (session::process_hello_cmd): Likewise.
* rcs_import.cc (import_rcs_file_with_cvs):
Unconditionally call db.put_file.
(cluster_consumer::store_revisions):
Unconditionally call db.put_revision.
* revision.cc (anc_graph::write_certs):
Unconditionally call db.put_revision_cert.
(anc_graph::construct_revisions_from_ancestry):
Unconditionally call db.put_revision.
* tests/automate_put_revision_unknown_file: Expect an error, not
an invariant failure. Fix a typo in one canned revision, and
reformat both for readability.
txtXt0BGl4znb.txt
Description: Diff [6ae6de16b31495a773ac3002505ad51f2e4a8616] -> [7f1c2d71bc2c0ade72809ac5835c10f38b322faa]
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Monotone-commits-diffs] Revision 7f1c2d71bc2c0ade72809ac5835c10f38b322faa,
monotone <=