comparison mercurial/ui.py @ 31064:4431add9aef9 stable

ui: replace obsolete default-push with default:pushurl (issue5485) Default-push has been deprecated in favour of default:pushurl. But "hg clone" still inserts this in every hgrc file it creates. This patch updates the message by replacing default-push with default:pushurl and also makes the necessary changes to test files.
author Rishabh Madan <rishabhmadan96@gmail.com>
date Sat, 25 Feb 2017 16:57:21 +0530
parents 7080652af6e6
children 13bbcd56c57a
comparison
equal deleted inserted replaced
31063:18fb3cf572b4 31064:4431add9aef9
55 default = %s 55 default = %s
56 56
57 # path aliases to other clones of this repo in URLs or filesystem paths 57 # path aliases to other clones of this repo in URLs or filesystem paths
58 # (see 'hg help config.paths' for more info) 58 # (see 'hg help config.paths' for more info)
59 # 59 #
60 # default-push = ssh://jdoe@example.net/hg/jdoes-fork 60 # default:pushurl = ssh://jdoe@example.net/hg/jdoes-fork
61 # my-fork = ssh://jdoe@example.net/hg/jdoes-fork 61 # my-fork = ssh://jdoe@example.net/hg/jdoes-fork
62 # my-clone = /home/jdoe/jdoes-clone 62 # my-clone = /home/jdoe/jdoes-clone
63 63
64 [ui] 64 [ui]
65 # name and email (local to this repository, optional), e.g. 65 # name and email (local to this repository, optional), e.g.
66 # username = Jane Doe <jdoe@example.com> 66 # username = Jane Doe <jdoe@example.com>
67 """, 67 """,
70 """# example repository config (see 'hg help config' for more info) 70 """# example repository config (see 'hg help config' for more info)
71 [paths] 71 [paths]
72 # path aliases to other clones of this repo in URLs or filesystem paths 72 # path aliases to other clones of this repo in URLs or filesystem paths
73 # (see 'hg help config.paths' for more info) 73 # (see 'hg help config.paths' for more info)
74 # 74 #
75 # default = http://example.com/hg/example-repo 75 # default = http://example.com/hg/example-repo
76 # default-push = ssh://jdoe@example.net/hg/jdoes-fork 76 # default:pushurl = ssh://jdoe@example.net/hg/jdoes-fork
77 # my-fork = ssh://jdoe@example.net/hg/jdoes-fork 77 # my-fork = ssh://jdoe@example.net/hg/jdoes-fork
78 # my-clone = /home/jdoe/jdoes-clone 78 # my-clone = /home/jdoe/jdoes-clone
79 79
80 [ui] 80 [ui]
81 # name and email (local to this repository, optional), e.g. 81 # name and email (local to this repository, optional), e.g.
82 # username = Jane Doe <jdoe@example.com> 82 # username = Jane Doe <jdoe@example.com>
83 """, 83 """,