ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/lib/src
Martin von Zweigbergk 0747da0491 revset_graph_iterator: add a mode for generating reverse graph
The request to show the log output with more recent commits at the
bottom comes up once in a while (among Mercurial users, and now also
for jj from @arxanas). It's pretty easy to implement by adding an
adapter to the current `RevsetGraphIterator`. It works by first
collecting all nodes and edges into a vector and then yielding them in
reverse order and with reversed edges. That means it's no longer lazy,
but that seems fine since the feature is optional. Also, it's only the
subset of nodes that are in the selected revset that will be
collected.

Making the CLI use the new iterator adapter will come in a later
patch.
2022-05-15 05:17:54 -07:00
..
protos protos: move protos.rs into src/protos/ 2022-05-05 11:46:40 -07:00
backend.rs cleanup: move {read,write}_conflict() methods earlier in Backend trait 2022-05-01 23:35:09 -07:00
commit.rs cleanup: replace .tree().id() by tree_id() to avoid looking up trees 2022-04-21 21:54:52 -07:00
commit_builder.rs commit_builder: move signature() to UserSettings 2022-03-10 12:38:07 -08:00
conflicts.rs backend: pass in path when reading/writing conflicts as well 2022-03-31 10:23:33 -07:00
dag_walk.rs cleanup: use while let Some(...) instead of checking before popping 2022-05-01 13:45:00 -07:00
diff.rs diff: add helpers for finding index for non-base side 2022-03-10 22:00:45 -08:00
file_util.rs
files.rs merge: fix modify/delete conflict to not resolve 2022-04-10 18:32:36 -07:00
git.rs git: avoid creating a HashSet only to convert to a Vec 2022-04-28 22:46:50 -07:00
git_backend.rs errors: add a custom error type for StackedTable 2022-05-01 23:35:09 -07:00
gitignore.rs gitignore: move function for chaining .gitignore to central place (#65, #87) 2022-03-12 10:48:06 -08:00
index.rs cleanup: use while let Some(...) instead of checking before popping 2022-05-01 13:45:00 -07:00
index_store.rs cleanup: use while let Some(...) instead of checking before popping 2022-05-01 13:45:00 -07:00
lib.rs
local_backend.rs cargo: upgrade protobuf crates to 3.0.1 2022-05-04 17:02:11 -07:00
lock.rs
matchers.rs matchers: add composite matcher for differences (#52) 2022-04-26 14:52:17 -07:00
nightly_shims.rs
op_heads_store.rs op_heads_store: don't pass whole RepoLoader into get_heads() 2022-04-21 21:55:19 -07:00
op_store.rs
operation.rs
refs.rs
repo.rs rewrite: propagate backend errors in DescendantRebase::rebase_next() 2022-05-02 08:05:24 -07:00
repo_path.rs
revset.pest revsets: allow single internal - and + characters in symbols (#46) 2022-04-28 08:14:15 -07:00
revset.rs revsets: allow single internal - and + characters in symbols (#46) 2022-04-28 08:14:15 -07:00
revset_graph_iterator.rs revset_graph_iterator: add a mode for generating reverse graph 2022-05-15 05:17:54 -07:00
rewrite.rs rewrite: propagate backend errors in DescendantRebase::rebase_next() 2022-05-02 08:05:24 -07:00
settings.rs config: move reading of config from lib crate to CLI crate 2022-03-23 09:57:42 -07:00
simple_op_store.rs cargo: upgrade protobuf crates to 3.0.1 2022-05-04 17:02:11 -07:00
stacked_table.rs errors: add a custom error type for StackedTable 2022-05-01 23:35:09 -07:00
store.rs backend: pass in path when reading/writing conflicts as well 2022-03-31 10:23:33 -07:00
testutils.rs workspace: canonicalize workspace and repo paths internally 2022-03-30 22:09:55 -07:00
transaction.rs transaction: move rebasing of descendants out of merge_operation() (#111) 2022-03-26 22:31:49 -07:00
tree.rs errors: use custom error for failed tree merge 2022-05-03 06:52:00 -07:00
tree_builder.rs
view.rs view: move merging of views up to repo level (#111) 2022-03-26 22:31:49 -07:00
working_copy.rs cargo: upgrade protobuf crates to 3.0.1 2022-05-04 17:02:11 -07:00
workspace.rs cleanup: simplify some uses of Option, mostly by using ? 2022-04-25 13:09:24 -07:00