Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Adding Checkin and hooking it up to the viewlet #100

Merged
merged 6 commits into from
Feb 10, 2017
Merged

Conversation

jpricket
Copy link
Member

Added commit box hover provider but this doesn't get used in the current Insiders build.
Added Checkin command and tests
Hooked up checkin to the viewlet

It doesn't currently change anything. Something is not set up properly for this to work.
- assert.throws doesn't seem to work as expected with Async/Await
- also cleaned up some unused error strings
- also fixed the status update to only run one at a time.
@msftclas
Copy link

Hi @jpricketMSFT, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!


It looks like you're a Microsoft contributor (Jason Prickett). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

@@ -50,6 +51,12 @@ export class Repository {
return this._repositoryRootFolder;
}

public async Checkin(files: string[], comment: string, workItemIds: number[]): Promise<string> {
Logger.LogDebug(`TFVC Repository.Undo`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Undo ==> Checkin

}

try {
this._manager.Telemetry.SendEvent(TfvcTelemetryEvents.Checkin);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this down?

@@ -63,24 +81,25 @@ export class TfvcError {

export class TfvcErrorCodes {
public static get MissingArgument(): string { return "MissingArgument"; }
public static get BadConfigFile(): string { return "BadConfigFile"; }
//public static get BadConfigFile(): string { return "BadConfigFile"; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the commented out ones.

@jpricket jpricket merged commit 05ec446 into master Feb 10, 2017
@jpricket jpricket deleted the users/jpricket/0202 branch February 17, 2017 15:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants