mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
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:
parent
2374b860a2
commit
910d269f35
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user