# HG changeset patch # User Brendan Cully # Date 1183662043 25200 # Node ID 4582c28e2874aade99c2fd4b2712e8078a0a785c # Parent 244a2609c199eafa3606ab1b2811ace3d9f0fd65# Parent 79210a63f4521bc4c478268cac989c3e8d59b96e Merge with crew diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -2254,7 +2254,7 @@ def revert(ui, repo, *pats, **opts): directory, the reverted files will thus appear modified afterwards. - If a file has been deleted, it is recreated. If the executable + If a file has been deleted, it is restored. If the executable mode of a file was changed, it is reset. If names are given, all files matching the names are reverted. diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -968,6 +968,12 @@ if os.name == 'nt': return p_name_ext return default + def set_signal_handler(): + try: + set_signal_handler_win32() + except NameError: + pass + try: # override functions with win32 versions if possible from util_win32 import * diff --git a/mercurial/util_win32.py b/mercurial/util_win32.py --- a/mercurial/util_win32.py +++ b/mercurial/util_win32.py @@ -300,7 +300,7 @@ class posixfile_nt(object): getuser_fallback = win32api.GetUserName -def set_signal_handler(): +def set_signal_handler_win32(): """Register a termination handler for console events including CTRL+C. python signal handlers do not work well with socket operations. diff --git a/tests/test-archive b/tests/test-archive --- a/tests/test-archive +++ b/tests/test-archive @@ -39,16 +39,22 @@ bunzip2 -dc test.tar.bz2 | tar tf - hg archive -t tgz -p %b-%h test-%h.tar.gz gzip -dc test-$QTIP.tar.gz | tar tf - | sed "s/$QTIP/TIP/" -cat > md5check.py < md5comp.py <