[PATCH] hg revert

TK Soh teekaysoh at yahoo.com
Sun Jul 3 04:17:12 UTC 2005


--- Matt Mackall <mpm at selenic.com> wrote:
> On Sat, Jul 02, 2005 at 08:13:50PM -0700, Bryan O'Sullivan wrote:
> > Add revert command.
> 
> Applied, thanks.

Seem to have some problem when reverting on non-tip revision. Please see the
following command log:

    [tksoh at mylinux wd]$ hg tip
    changeset:   589:4be4d458046741c8767368b441485faeb7519d6a
    tag:         tip
    user:        mpm at selenic.com
    date:        Sun Jul  3 11:57:47 2005
    summary:     [PATCH] bring MANIFEST.in up to date

    [tksoh at mylinux wd]$ hg co -C 0.6

    [tksoh at mylinux wd]$ hg parents
    changeset:   457:12e0fdbc57a0be78f0e817fd1d170a3615cd35da
    tag:         0.6
    user:        mpm at selenic.com
    date:        Sat Jun 25 04:28:09 2005
    summary:     Release tweaks

    [tksoh at mylinux wd]$ date >> README
    
    [tksoh at mylinux wd]$ hg status
    C README

    [tksoh at mylinux wd]$ hg revert

    [tksoh at mylinux wd]$ hg parents
    changeset:   457:12e0fdbc57a0be78f0e817fd1d170a3615cd35da
    tag:         0.6
    user:        mpm at selenic.com
    date:        Sat Jun 25 04:28:09 2005
    summary:     Release tweaks

    [tksoh at mylinux wd]$ hg status
    C .hgtags
    C MANIFEST.in
    C README
    C TODO
    C doc/hg.1.txt
    C hg
    C hgeditor
    C hgmerge
    C mercurial/bdiff.c
    C mercurial/byterange.py
    C mercurial/commands.py
    C mercurial/fancyopts.py
    C mercurial/hg.py
    C mercurial/hgweb.py
    C mercurial/lock.py
    C mercurial/mdiff.py
    C mercurial/mpatch.c
    C mercurial/revlog.py
    C mercurial/transaction.py
    C mercurial/ui.py
    C mercurial/util.py
    C mercurial/version.py
    C setup.py
    C templates/changelog.tmpl
    C templates/changelogentry.tmpl
    C templates/changeset-raw.tmpl
    C templates/changeset.tmpl
    C templates/fileannotate.tmpl
    C templates/filediff.tmpl
    C templates/filerevision.tmpl
    C templates/header.tmpl
    C templates/map
    C templates/tags.tmpl
    C tests/fish-merge
    C tests/run-tests
    C tests/test-bad-pull
    C tests/test-bad-pull.out
    C tests/test-basic
    C tests/test-conflict
    C tests/test-copy
    C tests/test-copy.out
    C tests/test-flags
    C tests/test-flags.out
    C tests/test-help
    C tests/test-help.out
    C tests/test-pull
    C tests/test-pull.out
    C tests/test-rawcommit1.out
    C tests/test-simple-update
    C tests/test-simple-update.out
    C tests/test-tags
    C tests/test-tags.out
    C tests/test-undo
    C tests/test-undo.out
    C tests/test-up-local-change
    C tests/test-up-local-change.out
    ? CONTRIBUTORS
    ? contrib/buildrpm
    ? contrib/mercurial.spec
    ? doc/Makefile
    ? doc/hgmerge.1.txt
    ? templates/search.tmpl
    ? templates/searchentry.tmpl
    ? tests/test-clone
    ? tests/test-clone-failure
    ? tests/test-clone-failure.out
    ? tests/test-clone.out
    ? tests/test-diffdir
    ? tests/test-diffdir.out
    ? tests/test-empty-dir
    ? tests/test-empty-dir.out
    ? tests/test-hook
    ? tests/test-hook.out
    ? tests/test-unrelated-pull
    ? tests/test-unrelated-pull.out


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Mercurial mailing list