开发者

Mercurial: Export last n revision into MQ

开发者 https://www.devze.com 2022-12-10 14:02 出处:网络
is ther开发者_JS百科e an easy way to export last n commits into a new mq queue and strip the commits from the real repository?

is ther开发者_JS百科e an easy way to export last n commits into a new mq queue and strip the commits from the real repository?

I do often start out developing a new feature, later realising I did something wrong/would want to use MQ to fold patches.

I am currently doing:

  1. Export last n commits as single patches
  2. Strip last n commits
  3. create new mq
  4. import all patches in reverse order


It's simple (as long as there are no merges):

hg qimport -r base:tip

And voilà.

0

精彩评论

暂无评论...
验证码 换一张
取 消