<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>> > hg qref -s <file to add><br>
> > hg qref -s -X <file to remove><br>
><br>
> OK, that's got to be one of the worst named options in hg, worthy of<br>
> git ;) It is documented all right, but my brain just always skipped it<br>
> when it read "--short". Out of curiosity, why is it named "short"?<br>
<br>
</div>The --short option has existed since mq was merged, the pre-merge repo<br>
seems to be lost, and we lost the original author to his little<br>
filesystem project years ago. So..  no one knows. Feel free to suggest a<br>
better name/description.</blockquote><div><br></div><div>What about an --add / -a option (or replacement of --short / -s) that only adds the files listed (regardless of the files in the current patch), i.e.</div><div><br>


</div><div>hg init test</div><div>echo 'initialA' >> A</div><div>echo 'initialB' >> B</div><div>hg ci -A -m 'initial commit'</div><div>echo 'I want this line' >> A</div><div>

hg qnew monkeypatch</div><div>echo 'Keep this line one as well' >> B</div><div>echo 'But not this one' >> A</div><div>hg qref -a B</div><div>hg diff</div><div>diff --git a/A b/A</div><div>--- a/A</div>

<div>+++ b/A</div><div>@@ -1,2 +1,3 @@</div><div> initialA</div><div> I want this line</div><div>+But not this one</div></div>