Renames can remove file!
Yogesh Bhagwat
clist.ybmail at gmail.com
Wed Oct 15 17:12:33 UTC 2008
On Wed, Oct 15, 2008 at 1:45 AM, J.S. van Bethlehem <jakobb at astro.rug.nl> wrote:
> Actually: if you think about what hg really does when you rename
> something, your results make sense:
>
Yes, it does make sense. But what does not make sense is not issuing a
warning or ask for confirmation.
E.g. in the second step I would have expected a confirmation.
>> [ybusenet at login03 zoo]$ hg rename foo foo.orig
>> [ybusenet at login03 zoo]$ hg rename bar foo
Here for this kind of implememtation, hg should ask:
File foo already marked for deletion. Do you wish to continue? y/[n]
I assumed that due to lack of warning, hg is being clever about
understanding the intended effect.
More information about the Mercurial
mailing list