[issue316] rollback loses dirstate modifications
Matt Mackall
mpm at selenic.com
Mon Jul 17 19:05:31 UTC 2006
On Mon, Jul 17, 2006 at 08:57:30PM +0200, Benoit Boissinot wrote:
> On 7/17/06, Bryan O'Sullivan <mercurial-bugs at selenic.com> wrote:
> >
> >New submission from Bryan O'Sullivan <bos at serpentine.com>:
> >
> >This is pretty minor.
> >
> >hg init a
> >cd a
> >echo a > a
> >hg ci -Ama
> >echo b > b
> >hg add b
> >hg rollback
> >
> >This loses the "add" of a.
> >
>
> This is the intended behaviour, rollback will put the repo at the
> previous state, including the dirstate.
> Or did i miss something ?
It's a documentation problem. Rollback is documented as undoing
changes in the repo, it just fails to mention that it returns the
dirstate to a state consistent with the repo.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list