mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-28 23:32:41 +00:00
workspace: remove upgrade code for workspace without .jj/repo
This commit is contained in:
parent
51b65128f3
commit
36c6236f62
1 changed files with 0 additions and 8 deletions
|
@ -190,14 +190,6 @@ impl Workspace {
|
|||
.ok_or(WorkspaceLoadError::NoWorkspaceHere(workspace_path))?;
|
||||
let workspace_root = jj_dir.parent().unwrap().to_owned();
|
||||
let mut repo_dir = jj_dir.join("repo");
|
||||
if !repo_dir.exists() {
|
||||
// TODO: Delete this in mid 2022 or so
|
||||
println!("The repo format has changed. Moving repo into .jj/repo/");
|
||||
std::fs::create_dir(&repo_dir).unwrap();
|
||||
for dir in ["store", "op_store", "op_heads", "index"] {
|
||||
std::fs::rename(jj_dir.join(dir), repo_dir.join(dir)).unwrap();
|
||||
}
|
||||
}
|
||||
// If .jj/repo is a file, then we interpret its contents as a relative path to
|
||||
// the actual repo directory (typically in another workspace).
|
||||
if repo_dir.is_file() {
|
||||
|
|
Loading…
Reference in a new issue