<div dir="ltr"><div class="gmail_quote">On Thu, Feb 16, 2012 at 12:41 AM, Sean Farley <span dir="ltr"><<a href="mailto:sean@mcs.anl.gov">sean@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><div class="im"><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><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>
</blockquote><div><br></div><div>This was discussed several times in the past: <a href="http://markmail.org/thread/oygxcdxd7kkjughb">http://markmail.org/thread/oygxcdxd7kkjughb</a></div><div><br></div><div>When I looked into adding it wasn't so easy due to the unholy complicated</div>
<div>implementation of qrefresh.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><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>
<br>_______________________________________________<br>
Mercurial-devel mailing list<br>
<a href="mailto:Mercurial-devel@selenic.com">Mercurial-devel@selenic.com</a><br>
<a href="http://selenic.com/mailman/listinfo/mercurial-devel" target="_blank">http://selenic.com/mailman/listinfo/mercurial-devel</a><br>
<br></blockquote></div><br></div>