remove command goes walkies

Chris Mason mason at suse.com
Thu Sep 1 12:01:14 CDT 2005


On Thu, 01 Sep 2005 09:39:50 -0700
"Bryan O'Sullivan" <bos at serpentine.com> wrote:

> On Thu, 2005-09-01 at 11:38 -0500, Jordan Breeding wrote:
> 
> > I wouldn't have expected to see the "one: No such file or directory"
> 
> Hmm.  What's happening there is that walk is treating "one" as an
> exact name, and it expects to see the file existing.  This should be
> fixable.

>From mercurial/dirstate.py:walkhelper()
       for ff in util.unique(files):
            f = os.path.join(self.root, ff)
            try:
                st = os.stat(f)
            except OSError, inst:
                if ff not in dc: self.ui.warn('%s: %s\n' % (
                    util.pathto(self.getcwd(), ff),
                    inst.strerror))
                continue

You could just drop the warning.  You're seeing it because the
directory isn't in the map.

-chris



More information about the Mercurial mailing list