void IHistoryViewMenuOperations.DiffWithPrevious() { if (LaunchTool.ShowDownloadPlasticExeWindow( mRepSpec, mIsGluonMode, TrackFeatureUseEvent.Features.InstallPlasticCloudFromDiffRevision, TrackFeatureUseEvent.Features.InstallPlasticEnterpriseFromDiffRevision, TrackFeatureUseEvent.Features.CancelPlasticInstallationFromDiffRevision)) { return; } HistoryRevision revision = HistorySelection. GetSelectedHistoryRevision(mHistoryListView); DiffOperation.DiffWithPrevious( mWkInfo, mRepSpec, Path.GetFileName(mPath), string.Empty, revision.Id, mItemId, revision.ChangeSet, mProgressControls, null, null); }
void IHistoryViewMenuOperations.RevertToThisRevision() { HistoryRevision revision = HistorySelection. GetSelectedHistoryRevision(mHistoryListView); string fullPath = GetFullPath(mWkInfo.ClientPath, mPath); if (mIsGluonMode) { HistoryDescriptor historyDescriptor = new HistoryDescriptor( mRepSpec, fullPath, mItemId, revision.Id, mIsDirectory); GluonRevertOperation.RevertToThisRevision( mWkInfo, mViewHost, mProgressControls, historyDescriptor, revision, mGuiMessage, RefreshAsset.UnityAssetDatabase); return; } RevertOperation.RevertToThisRevision( mWkInfo, mProgressControls, mWorkspaceWindow, mRepSpec, revision, fullPath, mGuiMessage, mNewIncomingChangesUpdater, RefreshAsset.UnityAssetDatabase); }
void IHistoryViewMenuOperations.SaveRevisionAs() { TrackFeatureUseEvent.For( PlasticGui.Plastic.API.GetRepositorySpec(mWkInfo), TrackFeatureUseEvent.Features.SaveRevisionFromFileHistory); HistoryRevision revision = HistorySelection. GetSelectedHistoryRevision(mHistoryListView); string defaultFileName = DefaultRevisionName.Get( Path.GetFileName(mPath), revision.ChangeSet); string destinationPath = SaveAction.GetDestinationPath( mWkInfo.ClientPath, mPath, defaultFileName); if (string.IsNullOrEmpty(destinationPath)) { return; } SaveRevisionOperation.SaveRevision( mRepSpec, destinationPath, revision, mProgressControls); }
void IHistoryViewMenuOperations.DiffChangeset() { HistoryRevision revision = HistorySelection. GetSelectedHistoryRevision(mHistoryListView); LaunchDiffOperations.DiffChangeset( mRepSpec, revision.ChangeSet, mIsGluonMode); }
long HistoryListViewMenu.IMenuOperations.GetSelectedChangesetId() { HistoryRevision revision = HistorySelection. GetSelectedHistoryRevision(mHistoryListView); if (revision == null) { return(-1); } return(revision.ChangeSet); }
void IHistoryViewMenuOperations.DiffWithPrevious() { HistoryRevision revision = HistorySelection. GetSelectedHistoryRevision(mHistoryListView); DiffOperation.DiffWithPrevious( mWkInfo, mRepSpec, Path.GetFileName(mPath), string.Empty, revision.Id, mItemId, revision.ChangeSet, mProgressControls, null, null); }
void IHistoryViewMenuOperations.DiffChangeset() { if (LaunchTool.ShowDownloadPlasticExeWindow( mRepSpec, mIsGluonMode, TrackFeatureUseEvent.Features.InstallPlasticCloudFromDiffChangeset, TrackFeatureUseEvent.Features.InstallPlasticEnterpriseFromDiffChangeset, TrackFeatureUseEvent.Features.CancelPlasticInstallationFromDiffChangeset)) { return; } HistoryRevision revision = HistorySelection. GetSelectedHistoryRevision(mHistoryListView); LaunchDiffOperations.DiffChangeset( mRepSpec, revision.ChangeSet, mIsGluonMode); }
void IHistoryViewMenuOperations.SaveRevisionAs() { HistoryRevision revision = HistorySelection. GetSelectedHistoryRevision(mHistoryListView); string defaultFileName = DefaultRevisionName.Get( Path.GetFileName(mPath), revision.ChangeSet); string destinationPath = SaveAction.GetDestinationPath( mWkInfo.ClientPath, mPath, defaultFileName); if (string.IsNullOrEmpty(destinationPath)) { return; } SaveRevisionOperation.SaveRevision( mRepSpec, destinationPath, revision, mProgressControls); }
void IHistoryViewMenuOperations.DiffWithPrevious() { if (LaunchTool.ShowDownloadPlasticExeWindow(mIsGluonMode)) { return; } HistoryRevision revision = HistorySelection. GetSelectedHistoryRevision(mHistoryListView); DiffOperation.DiffWithPrevious( mWkInfo, mRepSpec, Path.GetFileName(mPath), string.Empty, revision.Id, mItemId, revision.ChangeSet, mProgressControls, null, null); }
void IPlasticAPI.RevertToThisRevision(WorkspaceInfo wkInfo, RepositorySpec repSpec, HistoryRevision revision, string path) { throw new NotImplementedException(); }
void IPlasticAPI.GetRevisionDataToFile(RepositorySpec repSpec, HistoryRevision revision, string tmpFile) { throw new NotImplementedException(); }