5

I realize patch queues have a pretty simple implementation, and you can move stuff manually, but is there a command to move a patch between two queues?

user2864740
  • 60,010
  • 15
  • 145
  • 220
fakeleft
  • 2,830
  • 2
  • 30
  • 32

2 Answers2

3

To manually do this assuming you have two patch queues "A" and "B" and want to move a patch call "MyPatch" from "A" to "B":

  1. Open .hg/patches-A directory in repo root
  2. Copy MyPatch file to .hg/patches-B directory
  3. Open .hg/patches-A/series in text editor and delete "MyPatch" line
  4. Open .hg/patches-B/series in text editor and add "MyPatch" line

The series file within each patch queue directory contains the names of all patch files within that patch queue.

This is a good candidate for automation via either contributing to the mq extension or creating your own extension or shell script.

jenglert
  • 1,589
  • 15
  • 23
0

No, there isn't; you'll have to write an alias for yourself.

djc
  • 11,603
  • 5
  • 41
  • 54