# HG changeset patch # User Patrick Mezard # Date 1183661424 -7200 # Node ID 79210a63f4521bc4c478268cac989c3e8d59b96e # Parent 6aa1fae4c28a29cac3bd38b262c43ec603beae85# Parent beb774707c527363d9dbb728460029dae192a66b Merge with crew-stable diff -r 6aa1fae4c28a -r 79210a63f452 mercurial/commands.py --- a/mercurial/commands.py Wed Jul 04 13:38:49 2007 -0700 +++ b/mercurial/commands.py Thu Jul 05 20:50:24 2007 +0200 @@ -2254,7 +2254,7 @@ 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 -r 6aa1fae4c28a -r 79210a63f452 mercurial/util.py --- a/mercurial/util.py Wed Jul 04 13:38:49 2007 -0700 +++ b/mercurial/util.py Thu Jul 05 20:50:24 2007 +0200 @@ -968,6 +968,12 @@ 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 -r 6aa1fae4c28a -r 79210a63f452 mercurial/util_win32.py --- a/mercurial/util_win32.py Wed Jul 04 13:38:49 2007 -0700 +++ b/mercurial/util_win32.py Thu Jul 05 20:50:24 2007 +0200 @@ -300,7 +300,7 @@ 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 -r 6aa1fae4c28a -r 79210a63f452 tests/test-archive --- a/tests/test-archive Wed Jul 04 13:38:49 2007 -0700 +++ b/tests/test-archive Thu Jul 05 20:50:24 2007 +0200 @@ -39,16 +39,22 @@ 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 <