开发者

Mercurial Queues: combining patches

开发者 https://www.devze.com 2022-12-24 10:58 出处:网络
I\'ve been playing with Mercurial and mercurial queues, and now have a fairly reasonable working version.However, before I submit a patch, I\'d like to take that spagetti-history and merge it into dis

I've been playing with Mercurial and mercurial queues, and now have a fairly reasonable working version. However, before I submit a patch, I'd like to take that spagetti-history and merge it into discrete, logical steps, rat开发者_开发技巧her than the semi-overlapping repeated do-undo-redo-slightly-differently mess it is now, if only to reduce the number of patches.

How do I do that?


hg qfold is the way to go. Be very careful with it. Make sure you have read all the instructions beforehands. It's reasonable to version your patchqueue too (as a nested repoository), so you have backups:

hg qinit [-c]

init a new queue repository

The queue repository is unversioned by default. If -c is specified, qinit will create a separate nested repository for patches (qinit -c may also be run later to convert an unversioned patch repository into a versioned one). You can use qcommit to commit changes to this queue repository.

0

精彩评论

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