[patch] convert: gnu arch source for convert extension
Adrian Buehlmann
adrian at cadifra.com
Mon Feb 4 17:32:48 CST 2008
On 04.02.2008 19:49, Bryan O'Sullivan wrote:
> Aleix Conchillo Flaqué wrote:
>
>> I recently sent an email with a GNU Arch source for the convert
>> extension.
>
> A few smallish comments and questions:
>
>> diff -N -r -u crew.orig/hgext/convert/common.py crew/hgext/convert/common.py
>> --- crew.orig/hgext/convert/common.py 2008-02-03 16:47:03.000000000 +0100
>> +++ crew/hgext/convert/common.py 2008-02-03 17:19:56.000000000 +0100
>> @@ -227,7 +227,7 @@
>> except TypeError:
>> pass
>> cmdline = [util.shellquote(arg) for arg in cmdline]
>> - cmdline += ['<', util.nulldev]
>> + cmdline += ['2>', util.nulldev, '<', util.nulldev]
>> cmdline = ' '.join(cmdline)
>> self.ui.debug(cmdline, '\n')
>> return cmdline
>
> Patrick (or some other Windows person), will this cause problems on Windows?
>
According to:
http://technet.microsoft.com/en-us/library/bb490982.aspx
-- which describes command redirection operators for Windows XP -- '2>' is
correct syntax for redirecting std error on Windows XP:
'''
> ver
Microsoft Windows XP [Version 5.1.2600]
> del nonexistent >NUL
Could Not Find C:\Documents and Settings\adi\nonexistent
> del nonexistent 2>NUL
>
'''
The page:
http://technet.microsoft.com/en-us/library/bb742503.aspx
contains at the bottom example cmds that use the pattern '2>NUL' for Windows 2000.
More information about the Mercurial-devel
mailing list