jj/lib/src
Martin von Zweigbergk 0098edd3d2 op_store: add support for tracking multiple workspaces (#13)
This patch teaches the `View` object to keep track of the checkout in
each workspace. It serializes that information into the `OpStore`. For
compatibility with existing repos, the existing field for a single
workspace's checkout is interpreted as being for the workspace called
"default".

This is just an early step towards support for multiple
workspaces. Remaining things to do:

 * Record the workspace ID somewhere in `.jj/` (maybe in
   `.jj/working_copy/`)

 * Update existing code to use the workspace ID instead of assuming
   it's always "default" as we do after this patch

 * Add a way of indicating in `.jj/` that the repo lives elsewhere and
   make it possible to load a repo from such workspaces

 * Add a command for creating additional workspaces

 * Show each workspace's checkout in log output
2022-02-02 08:15:22 -08:00
..
backend.rs backend: make Vec inside CommitId non-public 2021-11-19 23:19:00 -08:00
commit.rs rewrite: optimize for rebase onto metadata-only change 2021-12-08 08:49:42 -08:00
commit_builder.rs backend: make Vec inside CommitId non-public 2021-11-19 23:19:00 -08:00
conflicts.rs cleanup: fix formatting regression 2021-11-14 12:46:38 -08:00
dag_walk.rs
diff.rs
file_util.rs
files.rs files: implement Debug for MergeResult, display byte vector as string 2021-11-07 15:17:51 -08:00
git.rs git: on import, only add ref target as head if target changed (#44) 2021-12-11 11:03:40 -08:00
git_backend.rs stacked_table: rename start_modification() to start_mutation() 2022-01-05 15:17:24 -08:00
gitignore.rs gitignore: don't apply patterns to parent directories 2022-01-12 11:27:49 -08:00
index.rs backend: make Vec inside CommitId non-public 2021-11-19 23:19:00 -08:00
index_store.rs
lib.rs clippy: return_self_not_must_use is now disabled (pedantic) by default 2022-01-26 22:13:09 -08:00
local_backend.rs backend: make Vec inside CommitId non-public 2021-11-19 23:19:00 -08:00
lock.rs cargo: upgrade to backoff 0.3 2021-12-01 08:13:20 -08:00
matchers.rs
op_heads_store.rs op_store: make Vec inside ViewId and OperationId non-public 2021-11-19 23:19:13 -08:00
op_store.rs op_store: add support for tracking multiple workspaces (#13) 2022-02-02 08:15:22 -08:00
operation.rs
protos.rs
refs.rs
repo.rs op_store: add support for tracking multiple workspaces (#13) 2022-02-02 08:15:22 -08:00
repo_path.rs
revset.pest revsets: allow the .. operator to be used as prefix or suffix (#46) 2021-12-15 22:16:22 -08:00
revset.rs revsets: add author() and committer() functions (#46) 2021-12-15 22:50:29 -08:00
revset_graph_iterator.rs
rewrite.rs rewrite: fix auto-rebasing after "branchy" rewrites 2022-01-27 22:20:14 -08:00
settings.rs
simple_op_store.rs op_store: add support for tracking multiple workspaces (#13) 2022-02-02 08:15:22 -08:00
stacked_table.rs stacked_table: rename start_modification() to start_mutation() 2022-01-05 15:17:24 -08:00
store.rs cleanup: fix some issues reported by new clippy and/or rustc 2021-12-10 14:12:45 -08:00
testutils.rs workspace: add functions for initializing a repo 2021-11-25 21:07:28 -08:00
transaction.rs debug: upgrade Drop implementations to non-debug assert! 2021-12-01 10:32:11 -08:00
tree.rs trees: pass a matcher to the entry iterator 2021-11-14 22:00:46 -08:00
tree_builder.rs tree_builder: rename repo() to more accurate store() 2021-11-07 15:17:51 -08:00
view.rs op_store: add support for tracking multiple workspaces (#13) 2022-02-02 08:15:22 -08:00
working_copy.rs working_copy: keep track of operation ID (#13) 2022-01-19 19:15:29 -08:00
workspace.rs workspace: store repo in .jj/repo/ (#13) 2022-02-02 08:15:22 -08:00