|
|
@ -103,7 +103,11 @@ impl Vcs {
|
|
|
|
format!("{}", self.work_dir.display()).italic(),
|
|
|
|
format!("{}", self.work_dir.display()).italic(),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
println!("{}", "Mismatching projects and profiles".with(ERROR_COLOR));
|
|
|
|
if self.profiles.is_empty() {
|
|
|
|
|
|
|
|
println!("{}", "No profiles defined, use 'cargo vcs save' to generate one".with(ERROR_COLOR));
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
println!("{}", "Mismatching projects and profiles".with(ERROR_COLOR));
|
|
|
|
|
|
|
|
}
|
|
|
|
self.list();
|
|
|
|
self.list();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -318,7 +322,7 @@ impl Vcs {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
path = path
|
|
|
|
path = path
|
|
|
|
.parent()
|
|
|
|
.parent()
|
|
|
|
.ok_or_else(|| Error::input_error("Workspace not found", path_str))?;
|
|
|
|
.ok_or_else(|| Error::input_error("No workspace found", path_str))?;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|