diff --git a/GitTfs.Vs2008/GitTfs.Vs2008.csproj b/GitTfs.Vs2008/GitTfs.Vs2008.csproj index ac685976..ea2084f3 100644 --- a/GitTfs.Vs2008/GitTfs.Vs2008.csproj +++ b/GitTfs.Vs2008/GitTfs.Vs2008.csproj @@ -49,9 +49,6 @@ C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\Microsoft.TeamFoundation.VersionControl.Client.dll - - C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\Microsoft.TeamFoundation.VersionControl.Controls.dll - C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\Microsoft.TeamFoundation.WorkItemTracking.Client.dll diff --git a/GitTfs.VsCommon/TfsHelper.Common.cs b/GitTfs.VsCommon/TfsHelper.Common.cs index 4ec9d2c6..b340de2b 100644 --- a/GitTfs.VsCommon/TfsHelper.Common.cs +++ b/GitTfs.VsCommon/TfsHelper.Common.cs @@ -4,8 +4,7 @@ using System.Diagnostics; using System.IO; using System.Linq; using Microsoft.TeamFoundation.Server; -using Microsoft.TeamFoundation.VersionControl.Client; -//using Microsoft.TeamFoundation.VersionControl.Controls; +using Microsoft.TeamFoundation.VersionControl.Client; using Microsoft.TeamFoundation.WorkItemTracking.Client; using SEP.Extensions; using Sep.Git.Tfs.Core; @@ -128,14 +127,6 @@ namespace Sep.Git.Tfs.VsCommon workspace.OwnerName)); } - //public bool ShowShelveDialog(IWorkspace workspace, IShelveset shelveset, ref IPendingChange[] pendingChanges, ref TfsShelvingOptions shelvingOptions) - //{ - // using(var dialog = new DialogShelve(_bridge.Unwrap(workspace))) - // { - // return false; - // } - //} - public IIdentity GetIdentity(string username) { return _bridge.Wrap(GroupSecurityService.ReadIdentity(SearchFactor.AccountName, username, QueryMembership.None)); diff --git a/GitTfs/Commands/CheckinOptions.cs b/GitTfs/Commands/CheckinOptions.cs index 6a110e2d..67959293 100644 --- a/GitTfs/Commands/CheckinOptions.cs +++ b/GitTfs/Commands/CheckinOptions.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.ComponentModel; using CommandLine.OptParse; using Sep.Git.Tfs.Util; @@ -12,7 +11,7 @@ namespace Sep.Git.Tfs.Commands private List _workItemsToAssociate = new List(); private List _workItemsToResolve = new List(); - [OptDef(OptValType.ValueReq)] + [OptDef(OptValType.ValueOpt)] [ShortOptionName('m')] [LongOptionName("comment")] [UseNameAsLongOption(false)] @@ -35,11 +34,5 @@ namespace Sep.Git.Tfs.Commands [LongOptionName("resolved-work-item")] [UseNameAsLongOption(false)] public List WorkItemsToResolve { get { return _workItemsToResolve; } } - - //[OptDef(OptValType.Flag)] - //[LongOptionName("interactive")] - //[UseNameAsLongOption(false)] - //[Description("Show the TF shelve dialog.")] - //public bool Interactive { get; set; } } } diff --git a/GitTfs/Core/TfsInterop/ITfsHelper.cs b/GitTfs/Core/TfsInterop/ITfsHelper.cs index b945e1d3..ae05f14d 100644 --- a/GitTfs/Core/TfsInterop/ITfsHelper.cs +++ b/GitTfs/Core/TfsInterop/ITfsHelper.cs @@ -17,6 +17,5 @@ namespace Sep.Git.Tfs.Core.TfsInterop IChangeset GetChangeset(int changesetId); bool MatchesUrl(string tfsUrl); bool HasShelveset(string shelvesetName); - //bool ShowShelveDialog(IWorkspace workspace, IShelveset shelveset, ref IPendingChange[] pendingChanges, ref TfsShelvingOptions shelvingOptions); } } \ No newline at end of file diff --git a/GitTfs/Core/TfsWorkspace.cs b/GitTfs/Core/TfsWorkspace.cs index 8b0dff1d..7efa67a4 100644 --- a/GitTfs/Core/TfsWorkspace.cs +++ b/GitTfs/Core/TfsWorkspace.cs @@ -41,11 +41,7 @@ namespace Sep.Git.Tfs.Core var shelveset = _tfsHelper.CreateShelveset(_workspace, shelvesetName); shelveset.Comment = _checkinOptions.CheckinComment; shelveset.WorkItemInfo = GetWorkItemInfos().ToArray(); - var shelvingOptions = _checkinOptions.Force ? TfsShelvingOptions.Replace : TfsShelvingOptions.None; - //if(_checkinOptions.Interactive) - // if(!_tfsHelper.ShowShelveDialog(_workspace, shelveset, ref pendingChanges, ref shelvingOptions)) - // return; - _workspace.Shelve(shelveset, pendingChanges, shelvingOptions); + _workspace.Shelve(shelveset, pendingChanges, _checkinOptions.Force ? TfsShelvingOptions.Replace : TfsShelvingOptions.None); } }