[PATCH] hg revert should unlink copied and renamed files
Eric Hopper
hopper at omnifarious.org
Sat Nov 19 07:15:34 UTC 2005
On Sat, Nov 19, 2005 at 07:48:08AM +0100, Thomas Arendsen Hein wrote:
> > However, if I do:
> >
> > hg update <foo>
> > hg copy a b
> > echo "and more" >> a
> > hg revert a
> >
> > ..we'd want b to stay where it was and a to lose its new last line.
>
> I'd expect to be back to exactly <foo> with 'b' gone, as above.
> In fact I think of it as a 'hg co -C' without changing the dirstate
> parents.
Even when someone specifically says 'hg revert a', not just plain 'hg
revert'? I would expect it to only change the state of a in that case,
even if something had been copied from a.
Have fun (if at all possible),
--
"It does me no injury for my neighbor to say there are twenty gods or no God.
It neither picks my pocket nor breaks my leg." --- Thomas Jefferson
"Go to Heaven for the climate, Hell for the company." -- Mark Twain
-- Eric Hopper (hopper at omnifarious.org http://www.omnifarious.org/~hopper) --
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20051118/d18d25c6/attachment-0001.asc>
More information about the Mercurial
mailing list