Patchwork Bug 5485 - Default hgrc generated on clone references the obsolete "default-push" path

login
register
mail settings
Submitter rishi shah
Date Feb. 28, 2017, 2:03 p.m.
Message ID <89dfe9ddd03a25d79520.1488290608@7.43.168.192.in-addr.arpa>
Download mbox | patch
Permalink /patch/18838/
State Not Applicable
Headers show

Comments

rishi shah - Feb. 28, 2017, 2:03 p.m.
# HG changeset patch
# User rishi shah <rishiloyola98245@gmail.com>
# Date 1488290254 -19800
#      Tue Feb 28 19:27:34 2017 +0530
# Node ID 89dfe9ddd03a25d795201c1a6a975833b8281b3c
# Parent  e02646d2c3e326efd1c030de135901cce1384f5e
Bug 5485 - Default hgrc generated on clone references the obsolete "default-push" path
The default push URL was formerly named default-push (still supported as an alias for backwards compatibility), but was changed to default:pushurl a while ago. So this patch is to update the default-push to default:push variable in the default HGRC file.

Patch

diff -r e02646d2c3e3 -r 89dfe9ddd03a mercurial/ui.py
--- a/mercurial/ui.py	Wed Feb 22 17:54:24 2017 +0530
+++ b/mercurial/ui.py	Tue Feb 28 19:27:34 2017 +0530
@@ -61,7 +61,7 @@ 
 # path aliases to other clones of this repo in URLs or filesystem paths
 # (see 'hg help config.paths' for more info)
 #
-# default-push = ssh://jdoe@example.net/hg/jdoes-fork
+# default:push = ssh://jdoe@example.net/hg/jdoes-fork
 # my-fork      = ssh://jdoe@example.net/hg/jdoes-fork
 # my-clone     = /home/jdoe/jdoes-clone
 
@@ -77,7 +77,7 @@ 
 # (see 'hg help config.paths' for more info)
 #
 # default      = http://example.com/hg/example-repo
-# default-push = ssh://jdoe@example.net/hg/jdoes-fork
+# default:push = ssh://jdoe@example.net/hg/jdoes-fork
 # my-fork      = ssh://jdoe@example.net/hg/jdoes-fork
 # my-clone     = /home/jdoe/jdoes-clone
 
diff -r e02646d2c3e3 -r 89dfe9ddd03a tests/test-hgrc.t
--- a/tests/test-hgrc.t	Wed Feb 22 17:54:24 2017 +0530
+++ b/tests/test-hgrc.t	Tue Feb 28 19:27:34 2017 +0530
@@ -35,7 +35,7 @@ 
   # path aliases to other clones of this repo in URLs or filesystem paths
   # (see 'hg help config.paths' for more info)
   #
-  # default-push = ssh://jdoe@example.net/hg/jdoes-fork
+  # default:push = ssh://jdoe@example.net/hg/jdoes-fork
   # my-fork      = ssh://jdoe@example.net/hg/jdoes-fork
   # my-clone     = /home/jdoe/jdoes-clone
   
diff -r e02646d2c3e3 -r 89dfe9ddd03a tests/test-pull-http.t
--- a/tests/test-pull-http.t	Wed Feb 22 17:54:24 2017 +0530
+++ b/tests/test-pull-http.t	Tue Feb 28 19:27:34 2017 +0530
@@ -33,7 +33,7 @@ 
   # path aliases to other clones of this repo in URLs or filesystem paths
   # (see 'hg help config.paths' for more info)
   #
-  # default-push = ssh://jdoe@example.net/hg/jdoes-fork
+  # default:push = ssh://jdoe@example.net/hg/jdoes-fork
   # my-fork      = ssh://jdoe@example.net/hg/jdoes-fork
   # my-clone     = /home/jdoe/jdoes-clone
   
diff -r e02646d2c3e3 -r 89dfe9ddd03a tests/test-revset-outgoing.t
--- a/tests/test-revset-outgoing.t	Wed Feb 22 17:54:24 2017 +0530
+++ b/tests/test-revset-outgoing.t	Tue Feb 28 19:27:34 2017 +0530
@@ -43,7 +43,7 @@ 
   # path aliases to other clones of this repo in URLs or filesystem paths
   # (see 'hg help config.paths' for more info)
   #
-  # default-push = ssh://jdoe@example.net/hg/jdoes-fork
+  # default:push = ssh://jdoe@example.net/hg/jdoes-fork
   # my-fork      = ssh://jdoe@example.net/hg/jdoes-fork
   # my-clone     = /home/jdoe/jdoes-clone
   
@@ -95,7 +95,7 @@ 
   # path aliases to other clones of this repo in URLs or filesystem paths
   # (see 'hg help config.paths' for more info)
   #
-  # default-push = ssh://jdoe@example.net/hg/jdoes-fork
+  # default:push = ssh://jdoe@example.net/hg/jdoes-fork
   # my-fork      = ssh://jdoe@example.net/hg/jdoes-fork
   # my-clone     = /home/jdoe/jdoes-clone
   
diff -r e02646d2c3e3 -r 89dfe9ddd03a tests/test-subrepo-deep-nested-change.t
--- a/tests/test-subrepo-deep-nested-change.t	Wed Feb 22 17:54:24 2017 +0530
+++ b/tests/test-subrepo-deep-nested-change.t	Tue Feb 28 19:27:34 2017 +0530
@@ -134,7 +134,7 @@ 
   # path aliases to other clones of this repo in URLs or filesystem paths
   # (see 'hg help config.paths' for more info)
   #
-  # default-push = ssh://jdoe@example.net/hg/jdoes-fork
+  # default:push = ssh://jdoe@example.net/hg/jdoes-fork
   # my-fork      = ssh://jdoe@example.net/hg/jdoes-fork
   # my-clone     = /home/jdoe/jdoes-clone
   
@@ -695,7 +695,7 @@ 
   # path aliases to other clones of this repo in URLs or filesystem paths
   # (see 'hg help config.paths' for more info)
   #
-  # default-push = ssh://jdoe@example.net/hg/jdoes-fork
+  # default:push = ssh://jdoe@example.net/hg/jdoes-fork
   # my-fork      = ssh://jdoe@example.net/hg/jdoes-fork
   # my-clone     = /home/jdoe/jdoes-clone
   
diff -r e02646d2c3e3 -r 89dfe9ddd03a tests/test-url-rev.t
--- a/tests/test-url-rev.t	Wed Feb 22 17:54:24 2017 +0530
+++ b/tests/test-url-rev.t	Tue Feb 28 19:27:34 2017 +0530
@@ -48,7 +48,7 @@ 
   # path aliases to other clones of this repo in URLs or filesystem paths
   # (see 'hg help config.paths' for more info)
   #
-  # default-push = ssh://jdoe@example.net/hg/jdoes-fork
+  # default:push = ssh://jdoe@example.net/hg/jdoes-fork
   # my-fork      = ssh://jdoe@example.net/hg/jdoes-fork
   # my-clone     = /home/jdoe/jdoes-clone