Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
Matt Mackall
- Wed, 24 Feb 2016 21:55:44
Show More
hgext/zeroconf/__init__.py
0
+2
-2
@@
-163,8
+163,8
b' def config(orig, self, section, key, def'
163
163
return path
164
164
return orig ( self , section , key , default , untrusted )
165
165
166
def configitems ( orig , self , section , untrusted=False):
167
repos = orig ( self , section , untrusted)
166
def configitems ( orig , self , section , * args , ** kwargs ):
167
repos = orig ( self , section , * args , ** kwargs )
168
168
if section == "paths" :
169
169
repos += getzcpaths ()
170
170
return repos
mercurial/cmdutil.py
0
+1
-9
@@
-2850,10
+2850,6
b' def revert(ui, repo, ctx, parents, *pats'
2850
2850
mf = ctx . manifest ()
2851
2851
if node == p2 :
2852
2852
parent = p2
2853
if node == parent :
2854
pmf = mf
2855
else :
2856
pmf = None
2857
2853
2858
2854
# need all matching names in dirstate and manifest of target rev,
2859
2855
# so have to walk both. do not print errors if files exist in one
@@
-2968,11
+2964,7
b' def revert(ui, repo, ctx, parents, *pats'
2968
2964
# in case of merge, files that are actually added can be reported as
2969
2965
# modified, we need to post process the result
2970
2966
if p2 != nullid :
2971
if pmf is None :
2972
# only need parent manifest in the merge case,
2973
# so do not read by default
2974
pmf = repo [ parent ] . manifest ()
2975
mergeadd = dsmodified - set ( pmf )
2967
mergeadd = dsmodified - smf
2976
2968
dsadded |= mergeadd
2977
2969
dsmodified -= mergeadd
2978
2970
mercurial/fileset.py
0
+2
-2
@@
-435,8
+435,8
b' def eol(mctx, x):'
435
435
styles.
436
436
"""
437
437
438
# i18n: "encoding" is a keyword
439
enc = getstring ( x , _ ( "encoding requires an encoding name" ))
438
# i18n: "eol " is a keyword
439
enc = getstring ( x , _ ( "eol requires a styl e name" ))
440
440
441
441
s = []
442
442
for f in mctx . existing ():
mercurial/help/config.txt
0
+4
-3
@@
-276,7
+276,7
b' run arbitrary commands. As an example, :'
276
276
will let you do ``hg echo foo`` to have ``foo`` printed in your
277
277
terminal. A better example might be::
278
278
279
purge = !$HG status --no-status --unknown -0 | xargs -0 rm
279
purge = !$HG status --no-status --unknown -0 re: | xargs -0 rm
280
280
281
281
which will make ``hg purge`` delete all unknown files in the
282
282
repository in the same manner as the purge extension.
@@
-334,7
+334,7
b' Each line has the following format::'
334
334
where ``<name>`` is used to group arguments into authentication
335
335
entries. Example::
336
336
337
foo.prefix = hg.intevation.org/mercurial
337
foo.prefix = hg.intevation.de /mercurial
338
338
foo.username = foo
339
339
foo.password = bar
340
340
foo.schemes = http https
@@
-977,7
+977,8
b' The CA chain and web.cacerts is not used'
977
977
For example::
978
978
979
979
[hostfingerprints]
980
hg.intevation.org = fa:1f:d9:48:f1:e7:74:30:38:8d:d8:58:b6:94:b8:58:28:7d:8b:d0
980
hg.intevation.de = fc:e2:8d:d9:51:cd:cb:c1:4d:18:6b:b7:44:8d:49:72:57:e6:cd:33
981
hg.intevation.org = fc:e2:8d:d9:51:cd:cb:c1:4d:18:6b:b7:44:8d:49:72:57:e6:cd:33
981
982
982
983
This feature is only supported when using Python 2.6 or later.
983
984
mercurial/help/templates.txt
0
+5
-5
@@
-43,13
+43,13
b' In addition to filters, there are some b'
43
43
44
44
.. functionsmarker
45
45
46
Also, for any expression that returns a list, there is a list operator:
46
Also, for any expression that returns a list, there is a list operator::
47
47
48
- expr % "{template}"
48
expr % "{template}"
49
49
50
As seen in the above example, "{template}" is interpreted as a template.
51
To prevent it from being interpreted, you can use an escape character "\{"
52
or a raw string prefix, "r'...'".
50
As seen in the above example, ``{template}`` is interpreted as a template.
51
To prevent it from being interpreted, you can use an escape character ``\{``
52
or a raw string prefix, ``r'...'`` .
53
53
54
54
Some sample command line templates:
55
55
mercurial/ui.py
0
+1
-1
@@
-796,7
+796,7
b' class ui(object):'
796
796
If ui is not interactive, the default is returned.
797
797
"""
798
798
if not self . interactive ():
799
self . write ( msg , ' ' , default , " \n " )
799
self . write ( msg , ' ' , default or '' , " \n " )
800
800
return default
801
801
try :
802
802
r = self . _readline ( self . label ( msg , 'ui.prompt' ))
setup.py
0
+1
-1
@@
-304,7
+304,7
b' class hgbuildext(build_ext):'
304
304
305
305
class hgbuildscripts ( build_scripts ):
306
306
def run ( self ):
307
if os . name != 'nt' :
307
if os . name != 'nt' or self . distribution . pure :
308
308
return build_scripts . run ( self )
309
309
310
310
exebuilt = False
tests/test-committer.t
0
+25
0
@@
-66,6
+66,31
b''
66
66
date : Thu Jan 01 00 : 00 : 00 1970 + 0000
67
67
summary : commit - 1
68
68
69
# test prompt username
70
71
$ cat > . hg / hgrc << EOF
72
> [ ui ]
73
> askusername = True
74
> EOF
75
76
$ echo 12345 > asdf
77
$ hg commit -- config ui . interactive = False - m ask
78
enter a commit username :
79
no username found , using '[^' ]* ' instead (re)
80
$ hg rollback -q
81
82
$ hg commit --config ui.interactive=True -m ask << EOF
83
> Asked User < ask @ example . com >
84
> EOF
85
enter a commit username : Asked User < ask @ example . com >
86
$ hg tip
87
changeset : 5 : 84 c91d963b70
88
tag : tip
89
user : Asked User < ask @ example . com >
90
date : Thu Jan 01 00 : 00 : 00 1970 + 0000
91
summary : ask
92
93
69
94
# test no .hg/hgrc (uses generated non-interactive username)
70
95
71
96
$ echo space > asdf
tests/test-paths.t
0
+8
0
@@
-97,6
+97,14
b' password should be masked in plain outpu'
97
97
}
98
98
]
99
99
100
zeroconf wraps ui . configitems () , which shouldn 't crash at least:
101
102
$ hg paths --config extensions.zeroconf=
103
dupe = $TESTTMP/b#tip (glob)
104
dupe:pushurl = https://example.com/dupe
105
expand = $TESTTMP/a/$SOMETHING/bar (glob)
106
insecure = http://foo:***@example.com/
107
100
108
$ cd ..
101
109
102
110
sub - options for an undeclared path are ignored
tests/test-revert.t
0
+69
0
@@
-1076,3
+1076,72
b' check resulting directory against the --'
1076
1076
$ cd ..
1077
1077
$ diff - U 0 -- content - base - all . txt content - base - explicit . txt | grep _
1078
1078
[ 1 ]
1079
1080
Revert to an ancestor of P2 during a merge ( issue5052 )
1081
-----------------------------------------------------
1082
1083
( prepare the repository )
1084
1085
$ hg init issue5052
1086
$ cd issue5052
1087
$ echo '.\.orig' > . hgignore
1088
$ echo 0 > root
1089
$ hg ci - qAm C0
1090
$ echo 0 > A
1091
$ hg ci - qAm C1
1092
$ echo 1 >> A
1093
$ hg ci - qm C2
1094
$ hg up - q 0
1095
$ echo 1 > B
1096
$ hg ci - qAm C3
1097
$ hg status -- rev 'ancestor(.,2)' -- rev 2
1098
A A
1099
$ hg log - G - T ' {rev} ( {files} ) \n '
1100
@ 3 ( B )
1101
|
1102
| o 2 ( A )
1103
| |
1104
| o 1 ( A )
1105
|/
1106
o 0 ( . hgignore root )
1107
1108
1109
actual tests : reverting to something else than a merge parent
1110
1111
$ hg merge
1112
1 files updated , 0 files merged , 0 files removed , 0 files unresolved
1113
( branch merge , don 't forget to commit)
1114
1115
$ hg status --rev ' p1 () '
1116
M A
1117
$ hg status --rev ' p2 () '
1118
A B
1119
$ hg status --rev ' 1 '
1120
M A
1121
A B
1122
$ hg revert --rev 1 --all
1123
reverting A
1124
removing B
1125
$ hg status --rev 1
1126
1127
From the other parents
1128
1129
$ hg up -C ' p2 () '
1130
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
1131
$ hg merge
1132
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
1133
(branch merge, don' t forget to commit )
1134
1135
$ hg status -- rev 'p1()'
1136
M B
1137
$ hg status -- rev 'p2()'
1138
A A
1139
$ hg status -- rev '1'
1140
M A
1141
A B
1142
$ hg revert -- rev 1 -- all
1143
reverting A
1144
removing B
1145
$ hg status -- rev 1
1146
1147
$ cd ..
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
g 0-9
Goto bookmarked items from 0-9
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository access permissions settings
t s
Toggle sidebar on some pages