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?

Plap
  • 1,046
  • 1
  • 8
  • 14
  • I don't think tortoisehg supports graft. Not all command line options are supported in tortoisehg. – usha Jun 03 '13 at 14:23

1 Answers1

39

TortoiseHG 2.8

Graft

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

Lazy Badger
  • 94,711
  • 9
  • 78
  • 110
  • Is it possible to do this from an external repository? – greydet Feb 12 '14 at 16:53
  • 1
    @greydet - I don't know, that is "external repository". Anyway, all Mecurial command always applied to local repository (it's DVCS after all) – Lazy Badger Feb 12 '14 at 17:09
  • 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 – greydet Feb 12 '14 at 22:17
  • 2
    @greydet - graft, by design *"copy changes from other branches onto the current branch"*, thus - no, it's operation inside single repo – Lazy Badger Feb 13 '14 at 07:01
  • you are right! In fact I need to use the TransplantExtension to cherrypick a changeset from another repository... – greydet Feb 13 '14 at 08:33
  • @greydet - 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 grafting – Lazy Badger Feb 13 '14 at 08:43
  • 2
    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"_ – matt wilkie Apr 09 '15 at 04:41