[PATCH V2] update: warn if cwd was deleted

Yuya Nishihara yuya at tcha.org
Tue Sep 6 08:54:00 EDT 2016


On Tue, 6 Sep 2016 14:36:58 +0200, Pierre-Yves David wrote:
> On 09/02/2016 10:43 PM, Stanislau Hlebik wrote:
> > # HG changeset patch
> > # User Stanislau Hlebik <stash at fb.com>
> > # Date 1472848944 25200
> > #      Fri Sep 02 13:42:24 2016 -0700
> > # Node ID 374caff3f6ba064070d01329eec1bd33a6a45370
> > # Parent  318e2b600b80e4ed3c6f37df46ec7544f60d4c0b
> > update: warn if cwd was deleted
> >
> > During update directories are deleted as soon as they have no entries.
> > But if current working directory is deleted then it cause problems
> > in complex commands like 'hg split'. This commit adds a warning
> > that will help users figure the problem faster.
> 
> There is a precedence about this scenarion in 'rebase'. Did anyone
> checked it out. We should probably ensure we have a unify approach here.

Er, this?

https://selenic.com/repo/hg/rev/e40520642e64


More information about the Mercurial-devel mailing list