0x2207
0x2207

Reputation: 964

mercurial transplant a merge commit

I have two diffrenet Mercurial repos, the A and the S. The repos S has two branches with two heads and some merges between the branches. I want to transplant this two branches preserving its names and the structure onto the revision N of the repo A.

Is it possible to do that using transplant extension of hg? I've failed to find a way to produce a commit with two parents (merge commit) using transplant.

Upvotes: 0

Views: 342

Answers (1)

Lazy Badger
Lazy Badger

Reputation: 97365

No-no-no

  1. Transplant can be used only in one repository (when you want copy changeset into another node in repository)
  2. Even for this task Transplant considered outdated and replaced by graft
  3. Moving branches (mutable history) as singe changeset (fixed slice) impossible in common sense

Describe your business-task better: maybe you just want pull two branches into A (hg pull -b BRANCH_1 -b BRANCH_2)?

Upvotes: 1

Related Questions