jj/lib/tests
Martin von Zweigbergk 70b99c960e transaction: make commit() return resulting ReadonlyRepo
I've wanted the API to look like this for a while. It seems like a
good API to me. It means that the caller won't have to reload the repo
after committing. The cost seems relatively small. It involves copying
potentially a lot of data in memory (at least the View object), but it
shouldn't involve reading from disk or any other processing. To reduce
the amount of data to copy, it may be worth switching to persistent
data types. I've also wanted to do that for the copying we do when
start a transaction.

I couldn't measure any slowdown caused by this change.
2021-05-08 13:50:59 -07:00
..
test_bad_locking.rs transaction: make commit() return resulting ReadonlyRepo 2021-05-08 13:50:59 -07:00
test_commit_builder.rs cleanup: address warnings reported by new clippy version 2021-04-28 09:12:48 -07:00
test_commit_concurrent.rs tests: use one thread per core in concurrency tests 2021-04-29 00:01:04 -07:00
test_diff_summary.rs cargo: rename crates to names available on crates.io 2021-01-03 10:16:00 -08:00
test_evolution.rs evolution: walk orphans using index 2021-04-14 08:25:14 -07:00
test_git.rs repo: make reload() and reload_at() return a new ReadonlyRepo 2021-04-11 10:39:29 -07:00
test_index.rs tests: add a helper for building commit graphs when only topology is important 2021-04-30 22:46:20 -07:00
test_init.rs transaction: delete write_commit() and as_repo_ref() helpers 2021-03-16 22:45:58 -07:00
test_load_repo.rs transaction: make commit() return resulting ReadonlyRepo 2021-05-08 13:50:59 -07:00
test_merge_trees.rs cleanup: address warnings reported by new clippy version 2021-04-28 09:12:48 -07:00
test_mut_repo.rs tests: add a helper for building commit graphs when only topology is important 2021-04-30 22:46:20 -07:00
test_operations.rs transaction: make commit() return resulting ReadonlyRepo 2021-05-08 13:50:59 -07:00
test_revset.rs revsets: add revset yielding merge commits 2021-05-02 14:33:38 -07:00
test_revset_graph_iterator.rs revsets: remove transitive edges in graph iterator by default 2021-05-01 23:25:33 -07:00
test_view.rs tests: add a helper for building commit graphs when only topology is important 2021-04-30 22:46:20 -07:00
test_working_copy.rs cleanup: address warnings reported by new clippy version 2021-04-28 09:12:48 -07:00
test_working_copy_concurrent.rs tests: use one thread per core in concurrency tests 2021-04-29 00:01:04 -07:00