Mercurial > public > mercurial-scm > hg
comparison mercurial/util.py @ 4434:439b1c35348a
Fix issue483 - mq does not work under windows with gnu-win32 patch.
Add --binary option to patch command under win32.
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sat, 12 May 2007 21:09:29 +0200 |
parents | f97b89314fb3 |
children | 62019c4427e3 |
comparison
equal
deleted
inserted
replaced
4433:ba22e867cb23 | 4434:439b1c35348a |
---|---|
791 return fallback | 791 return fallback |
792 | 792 |
793 _umask = os.umask(0) | 793 _umask = os.umask(0) |
794 os.umask(_umask) | 794 os.umask(_umask) |
795 | 795 |
796 def needbinarypatch(): | |
797 """return True if patches should be applied in binary mode by default.""" | |
798 return os.name == 'nt' | |
799 | |
796 # Platform specific variants | 800 # Platform specific variants |
797 if os.name == 'nt': | 801 if os.name == 'nt': |
798 import msvcrt | 802 import msvcrt |
799 nulldev = 'NUL:' | 803 nulldev = 'NUL:' |
800 | 804 |