revert add problem

Matt Mackall mpm at selenic.com
Fri Sep 14 12:20:08 CDT 2007


On Tue, Sep 11, 2007 at 07:16:53AM -0400, Neal Becker wrote:
> According to help, I should be able to use revert to undo add, but it
> doesn't seem to work:
> 
> >hg status ./doc
> A doc/.#SConscript
> A doc/design_document.lyx
> ? doc/#SConscript#
> > hg revert ./doc/#SConscript
> doc/#SConscript: No such file in rev 17ed02bf072a
> > hg status ./doc
> A doc/.#SConscript
> A doc/design_document.lyx
> ? doc/#SConscript#
> 
> Perhaps it's because I just added the dir 'doc' and didn't commit anything
> yet?

Uh, looks like you're missing a leading "."?

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial-devel mailing list