# HG changeset patch # User Patrick Mezard # Date 1183661424 -7200 # Node ID 79210a63f4521bc4c478268cac989c3e8d59b96e # Parent 6aa1fae4c28a29cac3bd38b262c43ec603beae85# Parent beb774707c527363d9dbb728460029dae192a66b Merge with crew-stable 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 <