void IBranchMenuOperations.DeleteBranch() { RepositorySpec repSpec = BranchesSelection.GetSelectedRepository(mBranchesListView); List <RepositorySpec> repositories = BranchesSelection.GetSelectedRepositories(mBranchesListView); List <BranchInfo> branchesToDelete = BranchesSelection.GetSelectedBranches(mBranchesListView); mBranchOperations.DeleteBranch(repositories, branchesToDelete); }
void IBranchMenuOperations.SwitchToBranch() { RepositorySpec repSpec = BranchesSelection.GetSelectedRepository(mBranchesListView); BranchInfo branchInfo = BranchesSelection.GetSelectedBranch(mBranchesListView); mBranchOperations.SwitchToBranch( repSpec, branchInfo, RefreshAsset.UnityAssetDatabase); }
void IBranchMenuOperations.RenameBranch() { RepositorySpec repSpec = BranchesSelection.GetSelectedRepository(mBranchesListView); BranchInfo branchInfo = BranchesSelection.GetSelectedBranch(mBranchesListView); BranchRenameData branchRenameData = RenameBranchDialog.GetBranchRenameData( repSpec, branchInfo, mParentWindow); mBranchOperations.RenameBranch(branchRenameData); }
void IBranchMenuOperations.CreateBranch() { RepositorySpec repSpec = BranchesSelection.GetSelectedRepository(mBranchesListView); BranchInfo branchInfo = BranchesSelection.GetSelectedBranch(mBranchesListView); BranchCreationData branchCreationData = CreateBranchDialog.CreateBranchFromLastParentBranchChangeset( mParentWindow, repSpec, branchInfo); mBranchOperations.CreateBranch(branchCreationData, RefreshAsset.UnityAssetDatabase); }
void IBranchMenuOperations.DeleteBranch() { RepositorySpec repSpec = BranchesSelection.GetSelectedRepository(mBranchesListView); List <RepositorySpec> repositories = BranchesSelection.GetSelectedRepositories(mBranchesListView); List <BranchInfo> branchesToDelete = BranchesSelection.GetSelectedBranches(mBranchesListView); mBranchOperations.DeleteBranch(repositories, branchesToDelete, () => { TrackFeatureUseEvent.For( repSpec, TrackFeatureUseEvent.Features.DeleteBranch); }); }
void IBranchMenuOperations.SwitchToBranch() { RepositorySpec repSpec = BranchesSelection.GetSelectedRepository(mBranchesListView); BranchInfo branchInfo = BranchesSelection.GetSelectedBranch(mBranchesListView); mBranchOperations.SwitchToBranch( repSpec, branchInfo, () => { TrackFeatureUseEvent.For( repSpec, TrackFeatureUseEvent.Features.SwitchBranch); RefreshAsset.UnityAssetDatabase(); }); }
void IBranchMenuOperations.RenameBranch() { RepositorySpec repSpec = BranchesSelection.GetSelectedRepository(mBranchesListView); BranchInfo branchInfo = BranchesSelection.GetSelectedBranch(mBranchesListView); BranchRenameData branchRenameData = RenameBranchDialog.GetBranchRenameData( repSpec, branchInfo, mParentWindow); mBranchOperations.RenameBranch(branchRenameData, () => { TrackFeatureUseEvent.For( repSpec, TrackFeatureUseEvent.Features.RenameBranch); }); }
void IBranchMenuOperations.CreateBranch() { RepositorySpec repSpec = BranchesSelection.GetSelectedRepository(mBranchesListView); BranchInfo branchInfo = BranchesSelection.GetSelectedBranch(mBranchesListView); BranchCreationData branchCreationData = CreateBranchDialog.CreateBranchFromLastParentBranchChangeset( mParentWindow, repSpec, branchInfo); mBranchOperations.CreateBranch(branchCreationData, () => { TrackFeatureUseEvent.For( repSpec, TrackFeatureUseEvent.Features.CreateBranch); }); }