Skip to content

Duplicate Operation

Duplicate copies one or more selected revisions and places the copies at a target.

Press y in the Revisions view to enter duplicate mode.

Whatever is selected (or the highlighted revision if nothing is selected) when you press y becomes the source. The source revisions are marked << duplicate >> in the list. Navigate to the target revision, choose a placement mode, then press enter to apply (or alt+enter to force apply).

  • o onto: places the copies as children of the target. Existing descendants of the target are not affected.
  • a after: places the copies after the target, and rebases the target’s existing descendants on top of the copies.
  • b before: places the copies before the target, inserting them between the target and its parents.
  • i insert: two-step placement — navigate to the “after” revision and press i to mark it, then navigate to the “before” revision and press enter. The copies are inserted between the two points.
  • t: open the target picker.

When the target revision is not visible in the current revset, press t to open the target picker. It lists bookmarks and tags, and also accepts a raw revset expression.

  • up/down: move
  • tab / shift+tab: autocomplete
  • enter: apply
  • alt+enter: force apply
  • esc: cancel
  • esc: cancel duplicate mode
  • f: ace jump
  • @: jump to working copy
  • j/k, pgup/pgdown: navigation
Contribute Community