clean up migration code

Summary:
All the current workspaces should be already populated because the release has
been running for a while. Remove the migration code and also fix a bug with
string to boolean conversion.

Reviewed By: mitrandir77

Differential Revision: D24045272

fbshipit-source-id: 347f0f46d343a13fc1d9f762f912af364813a66f
This commit is contained in:
Liubov Dmitrieva 2020-10-01 03:59:50 -07:00 committed by Facebook GitHub Bot
parent 2374b860a2
commit 910d269f35

View File

@ -138,14 +138,7 @@ def currentworkspacewithlocallyownedinfo(repo):
(current_workspace, locally_owned) = _get(
repo, "current_workspace", "locally_owned"
)
# populate existing workspaces with 'locally_owned' flag if it isn't set
# TODO: the code to be removed when all workspaces are populated
if current_workspace and locally_owned is None:
setworkspace(repo, current_workspace)
return (current_workspace, False)
return (current_workspace, bool(locally_owned))
return (current_workspace, eval(locally_owned) if locally_owned else False)
def currentworkspacewithusernamecheck(repo):