patch queues and having a patch own a file
Mads Kiilerich
mads at kiilerich.com
Mon Aug 15 16:30:20 UTC 2011
On 08/15/2011 05:31 PM, Tod Olson wrote:
> I'm using patch queues on a project, and am trying to figure out how to have a patch own a file. The goal would be that a qpush of the patch cause the file to be created, and a qpop of the patch would remove the file.
>
> For example: I've added a config file to someone else's code. It seemed like "hg add" was the only way to get the patch queue to be aware of the new file, but now every time I run "hg qpop -a", the config file must be removed manually or reapplying the patches will fail.
Did you do a 'hg qrefresh' so the add was picked up by mq?
(You need to know how mq works in order to use it efficiently. qrefresh
is basically a commit with some extra paperwork and brain surgery.)
See also
http://hgbook.red-bean.com/read/managing-change-with-mercurial-queues.html
/Mads
More information about the Mercurial
mailing list