Mercurial > hg > mercurial-source
changeset 33351:4daf5c18055a
contrib: make editmergeps use -NoNewWindow option in Start-Process cmdlet
Running 'Start-Process -Wait "vim" "+10" "filename"' from PowerShell
actually spawns a separate cmd window to run vim in. This looks ugly
and in most cases not what user wants. During my initial testing I was
using the Cmder app, which made me not notice this (it captures new
windows as new tabs).
author | Kostia Balytskyi <ikostia@fb.com> |
---|---|
date | Tue, 30 May 2017 06:02:31 -0700 |
parents | 4b9b87930cb3 |
children | 04e18be6e188 |
files | contrib/editmergeps.ps1 |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/editmergeps.ps1 +++ b/contrib/editmergeps.ps1 @@ -56,7 +56,7 @@ $linearg = "+$firstline" } - Start-Process -Wait $ed $linearg,$file + Start-Process -Wait -NoNewWindow $ed $linearg,$file $previousline = $firstline $lines = Get-Lines $firstline = if ($lines.Length -gt 0) { $lines[0] } else { $nil }