Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
Matt Mackall
- Mon, 23 Sep 2013 18:37:06
Show More
tests/test-generaldelta.t
0
created
755
+23
0
@@
-0,0
+1,23
b''
1
Check whether size of generaldelta revlog is not bigger than its
2
regular equivalent . Test would fail if generaldelta was naive
3
implementation of parentdelta : third manifest revision would be fully
4
inserted due to big distance from its paren revision ( zero ).
5
6
$ hg init repo
7
$ cd repo
8
$ echo foo > foo
9
$ echo bar > bar
10
$ hg commit - q - Am boo
11
$ hg clone -- pull . .. / gdrepo - q -- config format . generaldelta = yes
12
$ for r in 1 2 3 ; do
13
> echo $ r > foo
14
> hg commit - q - m $ r
15
> hg up - q - r 0
16
> hg pull . - q - r $ r - R .. / gdrepo
17
> done
18
$ cd ..
19
$ regsize = ` du - s - b repo /. hg / store / 00 manifest . i | cut - f 1 `
20
$ gdsize = ` du - s - b gdrepo /. hg / store / 00 manifest . i | cut - f 1 `
21
$ if (( regsize < gdsize )); then
22
> echo 'generaldelta increased size of a revlog!'
23
> fi
mercurial/extensions.py
0
+3
-2
@@
-349,12
+349,13
b' def disabledcmd(ui, cmd, strict=False):'
349
349
350
350
raise error . UnknownCommand ( cmd )
351
351
352
def enabled ():
352
def enabled ( shortname = True ):
353
353
'''return a dict of {name: desc} of extensions'''
354
354
exts = {}
355
355
for ename , ext in extensions ():
356
356
doc = ( gettext ( ext . __doc__ ) or _ ( '(no help text available)' ))
357
ename = ename . split ( '.' )[ - 1 ]
357
if shortname :
358
ename = ename . split ( '.' )[ - 1 ]
358
359
exts [ ename ] = doc . splitlines ()[ 0 ] . strip ()
359
360
360
361
return exts
mercurial/help.py
0
+2
-1
@@
-103,10
+103,11
b' def topicmatch(kw):'
103
103
cmdname = cmd . split ( '|' )[ 0 ] . lstrip ( '^' )
104
104
results [ 'commands' ] . append (( cmdname , summary ))
105
105
for name , docs in itertools . chain (
106
extensions . enabled () . iteritems (),
106
extensions . enabled ( False ) . iteritems (),
107
107
extensions . disabled () . iteritems ()):
108
108
# extensions.load ignores the UI argument
109
109
mod = extensions . load ( None , name , '' )
110
name = name . split ( '.' )[ - 1 ]
110
111
if lowercontains ( name ) or lowercontains ( docs ):
111
112
# extension docs are already translated
112
113
results [ 'extensions' ] . append (( name , docs . splitlines ()[ 0 ]))
mercurial/revlog.py
0
+3
-1
@@
-200,7
+200,7
b' class revlog(object):'
200
200
self . datafile = indexfile [: - 2 ] + ".d"
201
201
self . opener = opener
202
202
self . _cache = None
203
self . _basecache = (0, 0)
203
self . _basecache = None
204
204
self . _chunkcache = ( 0 , '' )
205
205
self . index = []
206
206
self . _pcache = {}
@@
-1131,6
+1131,8
b' class revlog(object):'
1131
1131
offset = self . end ( prev )
1132
1132
flags = 0
1133
1133
d = None
1134
if self . _basecache is None :
1135
self . _basecache = ( prev , self . chainbase ( prev ))
1134
1136
basecache = self . _basecache
1135
1137
p1r , p2r = self . rev ( p1 ), self . rev ( p2 )
1136
1138
tests/test-help.t
0
+8
-1
@@
-773,6
+773,12
b' Test help hooks'
773
773
774
774
Test keyword search help
775
775
776
$ cat > prefixedname . py << EOF
777
> '''matched against word "clone"
778
> '''
779
> EOF
780
$ echo '[extensions]' >> $ HGRCPATH
781
$ echo "dot.dot.prefixedname = `pwd`/prefixedname.py" >> $ HGRCPATH
776
782
$ hg help - k clone
777
783
Topics :
778
784
@@
-792,7
+798,8
b' Test keyword search help'
792
798
793
799
Extensions :
794
800
795
relink recreates hardlinks between repository clones
801
prefixedname matched against word "clone"
802
relink recreates hardlinks between repository clones
796
803
797
804
Extension Commands :
798
805
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