Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
Matt Mackall
- Fri, 29 Jan 2010 05:13:10
Show More
mercurial/config.py
0
+2
-2
@@
-73,10
+73,10
b' class config(object):'
73
def parse ( self , src , data , sections = None , remap = None , include = None ):
73
def parse ( self , src , data , sections = None , remap = None , include = None ):
74
sectionre = re . compile ( r '\[([^\[]+)\]' )
74
sectionre = re . compile ( r '\[([^\[]+)\]' )
75
itemre = re . compile ( r '([^=\s][^=]*?)\s*=\s*(.*\S|)' )
75
itemre = re . compile ( r '([^=\s][^=]*?)\s*=\s*(.*\S|)' )
76
contre = re . compile ( r '\s+(\S.*\S)' )
76
contre = re . compile ( r '\s+(\S|\ S.*\S)\s*$ ' )
77
emptyre = re . compile ( r '(;|#|\s*$)' )
77
emptyre = re . compile ( r '(;|#|\s*$)' )
78
unsetre = re . compile ( r ' %u nset\s+(\S+)' )
78
unsetre = re . compile ( r ' %u nset\s+(\S+)' )
79
includere = re . compile ( r ' %i nclude\s+(\S.*\S)' )
79
includere = re . compile ( r ' %i nclude\s+(\S|\ S.*\S)\s*$ ' )
80
section = ""
80
section = ""
81
item = None
81
item = None
82
line = 0
82
line = 0
mercurial/copies.py
0
+1
-1
@@
-154,7
+154,7
b' def copies(repo, c1, c2, ca, checkdirs=F'
154
break # no merge needed, quit early
154
break # no merge needed, quit early
155
c2 = ctx ( of , m2 [ of ])
155
c2 = ctx ( of , m2 [ of ])
156
cr = related ( oc , c2 , ca . rev ())
156
cr = related ( oc , c2 , ca . rev ())
157
if of == f or of == c2 . path (): # non-divergent
157
if cr and ( cr . path () == f or cr . path == c2 . path ()) : # non-divergent
158
copy [ f ] = of
158
copy [ f ] = of
159
of = None
159
of = None
160
break
160
break
tests/test-hgrc
0
+4
0
@@
-19,5
+19,9
b" echo '[foo]' > $HGRCPATH"
19
echo ' x = y' >> $HGRCPATH
19
echo ' x = y' >> $HGRCPATH
20
hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|"
20
hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|"
21
21
22
python -c "print '[foo]\nbar = a\n b\n c \n de\n fg \nbaz = bif cb \n'" \
23
> $HGRCPATH
24
hg showconfig foo
25
22
echo '%include /no-such-file' > $HGRCPATH
26
echo '%include /no-such-file' > $HGRCPATH
23
hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|"
27
hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|"
tests/test-hgrc.out
0
+2
0
@@
-7,4
+7,6
b' default = .../foo%bar'
7
bundle.mainreporoot=.../foobar
7
bundle.mainreporoot=.../foobar
8
paths.default=.../foo%bar
8
paths.default=.../foo%bar
9
hg: config error at $HGRCPATH:2: ' x = y'
9
hg: config error at $HGRCPATH:2: ' x = y'
10
foo.bar=a\nb\nc\nde\nfg
11
foo.baz=bif cb
10
hg: config error at $HGRCPATH:1: cannot include /no-such-file (No such file or directory)
12
hg: config error at $HGRCPATH:1: cannot include /no-such-file (No such file or directory)
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