Bug 2293 - qpop should warn when the current working directory is removed
Summary: qpop should warn when the current working directory is removed
Status: RESOLVED FIXED
Alias: None
Product: Mercurial
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: unspecified
Hardware: All All
: normal feature
Assignee: Bugzilla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-19 10:51 UTC by Justin Lebar
Modified: 2012-05-13 04:52 UTC (History)
3 users (show)

See Also:
Python Version: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lebar 2010-07-19 10:51 UTC
It's not uncommon for hg qpop (or even hg update) to remove the current
working directory.  In that case, hg should be user-friendly and inform the
user that the cwd has been removed.  Right now, hg just displays "abort: No
such file or directory" whenever you try and do anything.
Comment 1 kiilerix 2010-07-19 11:54 UTC
update can also remove directories. But so can other commands and other
processes, so I don't think it is Mercurials job to warn in this case.

But hg could probably be more helpful when it is run from a removed directory.
Comment 2 Justin Lebar 2010-07-19 11:57 UTC
> update can also remove directories. But so can other commands and other
> processes, so I don't think it is Mercurials job to warn in this case.

I don't see how this follows.  When update or qpop or whatever removes the
cwd, hg knows right then that the cwd is gone.  Why shouldn't it print a
warning?

> But hg could probably be more helpful when it is run from a removed directory.

Certainly.
Comment 3 HG Bot 2010-07-30 22:00 UTC
Fixed by http://hg.intevation.org/mercurial/crew/rev/f92f8921a5cc
Mads Kiilerich <mads@kiilerich.com>
dispatch: give better error message when cwd doesn't exist (issue2293)
Comment 4 Bugzilla 2012-05-12 09:11 UTC

--- Bug imported by bugzilla@serpentine.com 2012-05-12 09:11 EDT  ---

This bug was previously known as _bug_ 2293 at http://mercurial.selenic.com/bts/issue2293