<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 1, 2016, at 20:54, Gregory Szorc <<a href="mailto:gregory.szorc@gmail.com" class="">gregory.szorc@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class=""><div class="">One of my coworkers just blogged about confusing behavior w.r.t. performing a `hg remove` on a file that was `hg add`ed but not yet committed: <a href="http://code.v.igoro.us/posts/2016/09/user-guidance-vs-dwim.html" class="">http://code.v.igoro.us/posts/2016/09/user-guidance-vs-dwim.html</a><br class=""><br class=""></div>Is there room to change the behavior of `hg remove` to behave more like `hg forget` in this scenario? Or is the best we can do a wording change?<br class=""></div></div></div></div></div></div></blockquote><div><br class=""></div><div>The best we can do is really a wording change, because 'hg remove' wants to both remove the file from version control tracking *and* discard the file from the local filesystem. If we do the latter in this case, we've just caused data loss.</div><br class=""><blockquote type="cite" class=""><div class="">
_______________________________________________<br class="">Mercurial-devel mailing list<br class=""><a href="mailto:Mercurial-devel@mercurial-scm.org" class="">Mercurial-devel@mercurial-scm.org</a><br class="">https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel<br class=""></div></blockquote></div><br class=""></body></html>