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

feat: Added Merge command #1540

Merged
merged 6 commits into from
Nov 8, 2021

Conversation

MrLalelu
Copy link
Contributor

As I (and other #618) was looking for this feature for quite a while now, I just drafted it. I am not typescript, vscode & svn expert so am really happy for any improvement ideas.


async merge(repository: Repository, branch: IBranchItem) {
let reintegrate = false;
if (repository.currentBranch == "trunk") {
Copy link
Owner

Choose a reason for hiding this comment

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

This will not work for people that don't call their main branch trunk

Copy link
Owner

Choose a reason for hiding this comment

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

export function getBranchName(folder: string): IBranchItem | undefined {

Copy link
Owner

Choose a reason for hiding this comment

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

This might help

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. Added a isTrunk function to branches, that uses the same logic as in getBranchName.

Handle different main branches that are not called  trunk.
@JohnstonCode JohnstonCode self-requested a review November 1, 2021 16:44
src/commands/merge.ts Outdated Show resolved Hide resolved
In other branches information about the error is always already outputed
@JohnstonCode JohnstonCode changed the title Merge command feat: Added Merge command Nov 8, 2021
@JohnstonCode
Copy link
Owner

fixes #618

@JohnstonCode JohnstonCode linked an issue Nov 8, 2021 that may be closed by this pull request
@JohnstonCode
Copy link
Owner

@MrLalelu thanks for your work on this!

@JohnstonCode JohnstonCode merged commit 87060b3 into JohnstonCode:master Nov 8, 2021
JohnstonCode added a commit that referenced this pull request Nov 8, 2021
# [2.15.0](v2.14.0...v2.15.0) (2021-11-08)

### Features

* Added Merge command ([#1540](#1540)) ([87060b3](87060b3))
@JohnstonCode
Copy link
Owner

🎉 This PR is included in version 2.15.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SVN Merge Support
2 participants