comparison mercurial/commands.py @ 2045:5796edb127e6

document the possible race in "hg undo"
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Mon, 03 Apr 2006 22:47:18 +0200
parents b343e7d454b4
children f70952384ae7
comparison
equal deleted inserted replaced
2044:b343e7d454b4 2045:5796edb127e6
2754 This command should be used with care. There is only one level of 2754 This command should be used with care. There is only one level of
2755 undo and there is no redo. 2755 undo and there is no redo.
2756 2756
2757 This command is not intended for use on public repositories. Once 2757 This command is not intended for use on public repositories. Once
2758 a change is visible for pull by other users, undoing it locally is 2758 a change is visible for pull by other users, undoing it locally is
2759 ineffective. 2759 ineffective. Furthemore a race is possible with readers of the
2760 repository, for example an ongoing pull from the repository will
2761 fail and rollback.
2760 """ 2762 """
2761 repo.undo() 2763 repo.undo()
2762 2764
2763 def update(ui, repo, node=None, merge=False, clean=False, force=None, 2765 def update(ui, repo, node=None, merge=False, clean=False, force=None,
2764 branch=None, **opts): 2766 branch=None, **opts):