OBSOLETE. Use Set-IniEntry instead.
Set-HgrcDefaultPushUrl [-RepoPath] <String> [-DefaultPushUrl] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
We've replaced this function with the more generic Set-IniEntry
. Call it like so:
Set-IniEntry -Path (Join-Path $RepoPath .hg\hgrc -Resolve) -Section paths -Name 'default-push' -Value $DefaultPushUrl
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
RepoPath | String | The path to the repository whose default-push URL should be updated. | true | false | |
DefaultPushUrl | String | The value of the default-push URL. | true | false | |
WhatIf | SwitchParameter | false | false | ||
Confirm | SwitchParameter | false | false | ||
CommonParameters | This cmdlet supports common parameters. For more information type Get-Help about_CommonParameters . |
Set-IniEntry -Path (Join-Path $RepoPath .hg\hgrc -Resolve) -Section paths -Name 'default-push' -Value $DefaultPushUrl
This example shows how to use Set-IniEntry
instead of Set-HgrcDefaultPushUrl
.