How to graft with tortoisehg
Asked Answered
D

1

22

I heard of the new hg graft feature, it's a useful feature to apply certain changesets from a branch to another.

Is it possible to use it from tortoisehg?

Des answered 3/6, 2013 at 14:16 Comment(1)
I don't think tortoisehg supports graft. Not all command line options are supported in tortoisehg.Benzo
O
39

TortoiseHG 2.8

Graft

Selected changeset (r64) will be grafted to local (active) branch "default", because Working Dir parent is r66

Overelaborate answered 3/6, 2013 at 15:28 Comment(7)
Is it possible to do this from an external repository?Brahui
@Brahui - I don't know, that is "external repository". Anyway, all Mecurial command always applied to local repository (it's DVCS after all)Overelaborate
I mean: is it possible to "graft" a changeset from another repository in the current repository using tortoiseHg? I other word an equivalent to the command: hg graft -R /path/to/repo <changeset>Brahui
@Brahui - graft, by design "copy changes from other branches onto the current branch", thus - no, it's operation inside single repoOverelaborate
you are right! In fact I need to use the TransplantExtension to cherrypick a changeset from another repository...Brahui
@Brahui - No!!! "The graft command provides similar functionality in Mercurial 2.0 or newer and has smarter merge capability" - from Transplant wiki. If repositories are unrelated, you can graft bundle, if related - pull source to target before graftingOverelaborate
it would be nice to expand the answer to include an example of grafting from a different repository. I'm not sure what to make of "If repositories are unrelated, you can graft bundle, if related - pull source to target before grafting"Brietta

© 2022 - 2024 — McMap. All rights reserved.