Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented Hg.createBranch() and removed Hg.checkout() after hg.createBranch() call. #36

Merged
merged 2 commits into from
Nov 13, 2019

Conversation

adriano-repetti
Copy link

What it does

  • Implemented Hg.createBranch() (command hg branch).
  • Removed the call to Hg.checkout() after Hg.createBranch(), the newly created branch is already active (and anyway checkout needs a commit before selecting a new branch from remote).

Note: It uses hg branch <name> without -f then the branch name must be unique.

How to test

  • Click the branch name in the status bar.
  • Click Create new branch.
  • Type the name of a new (non existing) branch.
  • Confirm with Enter.

Review checklist

Reminder for reviewers

Copy link

@westbury westbury left a comment

Choose a reason for hiding this comment

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

LGTM

*/
createBranch(repository: Repository, branchName: string, branchStartPoint?: string): Promise<void>
createBranch(repository: Repository, branchName: string): Promise<void>

Choose a reason for hiding this comment

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

Thanks for removing the parameter. It makes no sense in Mercurial.

@westbury westbury merged commit 16fe44b into release-0.9.0 Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants