[PATCH 1 of 2] diff: add the --output option

Ahmed S. Darwish darwish.07 at gmail.com
Fri Jun 28 17:28:05 CDT 2013


Hi,

On Fri, Jun 28, 2013 at 11:06:31PM +0200, Ahmed S. Darwish wrote:
> diff: add the --output option
> 
> For all shells which cannot save a command standard output correctly,
> this option is now introduced.
> 
> The most common example is Microsoft PowerShell, where the piped
> output gets corrupted if saved using the standard, unix-like, stdout
> rediction '>' operator. By transforming the piped output to a
> different encoding, PowerShell saves 'hg diff' patch output to a
> format __not understandable__ by GNU patch and 'hg patch' commands.
> 
> Windows PowerShell is installed by default on all Windows 7+
> machines (Windows 7, 8, Server 2008, and Server 2012). An easily
> invokable 'hg diff > temp.patch' command should thus be available
> on these systems.
>

Would a patch that adds the above warning to `$ hg diff --help'
be acceptable?

Thanks,
 
--
Darwish
http://darwish.chasingpointers.com


More information about the Mercurial-devel mailing list