Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Matt Burke
committed
Jun 21, 2010
1 parent
bb27017
commit 0cd569d
Showing
2 changed files
with
100 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,95 +1,95 @@ | |||
using Microsoft.TeamFoundation.Server; | using Microsoft.TeamFoundation.Server; | ||
using Microsoft.TeamFoundation.VersionControl.Client; | using Microsoft.TeamFoundation.VersionControl.Client; | ||
using Sep.Git.Tfs.Vs2008; | using Sep.Git.Tfs.Core.TfsInterop; | ||
using ChangeType=Microsoft.TeamFoundation.VersionControl.Client.ChangeType; | using ChangeType=Microsoft.TeamFoundation.VersionControl.Client.ChangeType; | ||
|
|
||
namespace Sep.Git.Tfs.Core.TfsInterop | namespace Sep.Git.Tfs.Vs2008 | ||
{ | { | ||
public class TfsApiBridge | public class TfsApiBridge | ||
{ | { | ||
public IChangeset Wrap(Changeset changeset) | public IChangeset Wrap(Changeset changeset) | ||
{ | { | ||
return new WrapperForChangeset(this, changeset); | return new WrapperForChangeset(this, changeset); | ||
} | } | ||
|
|
||
public IChange Wrap(Change change) | public IChange Wrap(Change change) | ||
{ | { | ||
return new WrapperForChange(this, change); | return new WrapperForChange(this, change); | ||
} | } | ||
|
|
||
public IItem Wrap(Item item) | public IItem Wrap(Item item) | ||
{ | { | ||
return new WrapperForItem(this, item); | return new WrapperForItem(this, item); | ||
} | } | ||
|
|
||
public IIdentity Wrap(Identity identity) | public IIdentity Wrap(Identity identity) | ||
{ | { | ||
return identity == null ? (IIdentity)new NullIdentity() : new WrapperForIdentity(identity); | return identity == null ? (IIdentity)new NullIdentity() : new WrapperForIdentity(identity); | ||
} | } | ||
|
|
||
public IWorkspace Wrap(Workspace workspace) | public IWorkspace Wrap(Workspace workspace) | ||
{ | { | ||
return new WrapperForWorkspace(this, workspace); | return new WrapperForWorkspace(this, workspace); | ||
} | } | ||
|
|
||
public Workspace Unwrap(IWorkspace workspace) | public Workspace Unwrap(IWorkspace workspace) | ||
{ | { | ||
return WrapperFor<Workspace>.Unwrap(workspace); | return WrapperFor<Workspace>.Unwrap(workspace); | ||
} | } | ||
|
|
||
public IShelveset Wrap(Shelveset shelveset) | public IShelveset Wrap(Shelveset shelveset) | ||
{ | { | ||
return new WrapperForShelveset(this, shelveset); | return new WrapperForShelveset(this, shelveset); | ||
} | } | ||
|
|
||
public Shelveset Unwrap(IShelveset shelveset) | public Shelveset Unwrap(IShelveset shelveset) | ||
{ | { | ||
return WrapperFor<Shelveset>.Unwrap(shelveset); | return WrapperFor<Shelveset>.Unwrap(shelveset); | ||
} | } | ||
|
|
||
public IPendingChange Wrap(PendingChange pendingChange) | public IPendingChange Wrap(PendingChange pendingChange) | ||
{ | { | ||
return new WrapperForPendingChange(pendingChange); | return new WrapperForPendingChange(pendingChange); | ||
} | } | ||
|
|
||
public PendingChange Unwrap(IPendingChange pendingChange) | public PendingChange Unwrap(IPendingChange pendingChange) | ||
{ | { | ||
return WrapperFor<PendingChange>.Unwrap(pendingChange); | return WrapperFor<PendingChange>.Unwrap(pendingChange); | ||
} | } | ||
|
|
||
public IWorkItemCheckinInfo Wrap(WorkItemCheckinInfo workItemCheckinInfo) | public IWorkItemCheckinInfo Wrap(WorkItemCheckinInfo workItemCheckinInfo) | ||
{ | { | ||
return new WrapperForWorkItemCheckinInfo(workItemCheckinInfo); | return new WrapperForWorkItemCheckinInfo(workItemCheckinInfo); | ||
} | } | ||
|
|
||
public IVersionControlServer Wrap(VersionControlServer versionControlServer) | public IVersionControlServer Wrap(VersionControlServer versionControlServer) | ||
{ | { | ||
return new WrapperForVersionControlServer(this, versionControlServer); | return new WrapperForVersionControlServer(this, versionControlServer); | ||
} | } | ||
|
|
||
public WorkItemCheckinInfo Unwrap(IWorkItemCheckinInfo info) | public WorkItemCheckinInfo Unwrap(IWorkItemCheckinInfo info) | ||
{ | { | ||
return WrapperFor<WorkItemCheckinInfo>.Unwrap(info); | return WrapperFor<WorkItemCheckinInfo>.Unwrap(info); | ||
} | } | ||
|
|
||
public TfsChangeType Convert(ChangeType type) | public TfsChangeType Convert(ChangeType type) | ||
{ | { | ||
return (TfsChangeType) (int) type; | return (TfsChangeType) (int) type; | ||
} | } | ||
|
|
||
public TfsItemType Convert(ItemType type) | public TfsItemType Convert(ItemType type) | ||
{ | { | ||
return (TfsItemType) (int) type; | return (TfsItemType) (int) type; | ||
} | } | ||
|
|
||
public WorkItemCheckinAction Convert(TfsWorkItemCheckinAction action) | public WorkItemCheckinAction Convert(TfsWorkItemCheckinAction action) | ||
{ | { | ||
return (WorkItemCheckinAction) (int) action; | return (WorkItemCheckinAction) (int) action; | ||
} | } | ||
|
|
||
public ShelvingOptions Convert(TfsShelvingOptions options) | public ShelvingOptions Convert(TfsShelvingOptions options) | ||
{ | { | ||
return (ShelvingOptions) (int) options; | return (ShelvingOptions) (int) options; | ||
} | } | ||
} | } | ||
} | } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters