qrefresh a single file with other modifications?
Idan Kamara
idankk86 at gmail.com
Mon May 23 13:28:04 UTC 2011
On Mon, May 23, 2011 at 3:11 AM, Augie Fackler <durin42 at gmail.com> wrote:
> On May 22, 2011, at 3:51 PM, Matt Mackall wrote:
> >
> > On Sun, 2011-05-22 at 22:04 +0300, Idan Kamara wrote:
> >> Hi,
> >>
> >> This seems pretty basic so I may be missing something.
> >> Can I somehow qrefresh a single file if I have other modifications in my
> >> working copy without discarding the changes I already have in the patch?
> >>
> >> The following don't work:
> >> $ hg qrefresh file
> >> $ hg qrefresh -I file
> >
> > This is almost what you want:
> >
> > -s --short refresh only files already in the patch and
> > specified files
>
> I believe at one point Steve and I mused about some sort of qrefresh
> --append option that do just this. Steve, did you ever do anything towards
> it beyond the discussion we had in Paris?
Yeah, specifically I'll be interested in the following behavior:
(suppose I have an applied patch with changes to files a and b)
$ hg st
M a
M b
$ hg qref --append a (if we use -s here, b will be refreshed too)
$ hg st
M b
(with old changes to b stay in the patch)
If anyone made some effort in this direction, let me know (although you'll
be able to mimic this with the soon-to-come qrefresh --interactive :) .
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20110523/59118d70/attachment.html>
More information about the Mercurial
mailing list