##// END OF EJS Templates
Merge with main.
Augie Fackler -
r19329:84dc9669 merge default
parent child Browse files
Show More
@@ -1,4 +1,4 b''
1 import sys, os, __builtin__
1 import os, __builtin__
2 from mercurial import util
2 from mercurial import util
3
3
4 def lowerwrap(scope, funcname):
4 def lowerwrap(scope, funcname):
@@ -1,7 +1,7 b''
1 # perf.py - performance test routines
1 # perf.py - performance test routines
2 '''helper extension to measure performance'''
2 '''helper extension to measure performance'''
3
3
4 from mercurial import cmdutil, scmutil, util, match, commands, obsolete
4 from mercurial import cmdutil, scmutil, util, commands, obsolete
5 from mercurial import repoview, branchmap, merge, copies
5 from mercurial import repoview, branchmap, merge, copies
6 import time, os, sys
6 import time, os, sys
7
7
@@ -36,7 +36,7 b' A few obvious properties that are not cu'
36 '''
36 '''
37
37
38 import bisect, collections, json, os, random, time, sys
38 import bisect, collections, json, os, random, time, sys
39 from mercurial import cmdutil, context, patch, scmutil, url, util, hg
39 from mercurial import cmdutil, context, patch, scmutil, util, hg
40 from mercurial.i18n import _
40 from mercurial.i18n import _
41 from mercurial.node import nullrev, nullid
41 from mercurial.node import nullrev, nullid
42
42
@@ -4,7 +4,6 b' sys.path.insert(0, "..")'
4 # fall back to pure modules if required C extensions are not available
4 # fall back to pure modules if required C extensions are not available
5 sys.path.append(os.path.join('..', 'mercurial', 'pure'))
5 sys.path.append(os.path.join('..', 'mercurial', 'pure'))
6 from mercurial import demandimport; demandimport.enable()
6 from mercurial import demandimport; demandimport.enable()
7 from mercurial import encoding
8 from mercurial import minirst
7 from mercurial import minirst
9 from mercurial.commands import table, globalopts
8 from mercurial.commands import table, globalopts
10 from mercurial.i18n import gettext, _
9 from mercurial.i18n import gettext, _
@@ -16,8 +16,8 b' configuration files for Mercurial'
16 :class: htmlonly
16 :class: htmlonly
17
17
18
18
19 Synopsis
19 Description
20 ========
20 ===========
21
21
22 .. include:: ../mercurial/help/config.txt
22 .. include:: ../mercurial/help/config.txt
23
23
@@ -364,10 +364,11 b' class bundle10(object):'
364
364
365 if fastpathlinkrev:
365 if fastpathlinkrev:
366 ln, llr = filerevlog.node, filerevlog.linkrev
366 ln, llr = filerevlog.node, filerevlog.linkrev
367 needed = set(cl.rev(x) for x in clnodes)
367 def genfilenodes():
368 def genfilenodes():
368 for r in filerevlog:
369 for r in filerevlog:
369 linkrev = llr(r)
370 linkrev = llr(r)
370 if linkrev not in commonrevs:
371 if linkrev in needed:
371 yield filerevlog.node(r), cl.node(linkrev)
372 yield filerevlog.node(r), cl.node(linkrev)
372 fnodes[fname] = dict(genfilenodes())
373 fnodes[fname] = dict(genfilenodes())
373
374
@@ -585,7 +585,8 b' static PyObject *hashmangle(const char *'
585 in a space or dot, which are unportable. */
585 in a space or dot, which are unportable. */
586 if (d == '.' || d == ' ')
586 if (d == '.' || d == ' ')
587 dest[destlen - 1] = '_';
587 dest[destlen - 1] = '_';
588 if (destlen > maxshortdirslen)
588 /* The + 3 is to account for "dh/" in the beginning */
589 if (destlen > maxshortdirslen + 3)
589 break;
590 break;
590 charcopy(dest, &destlen, destsize, src[i]);
591 charcopy(dest, &destlen, destsize, src[i]);
591 p = -1;
592 p = -1;
@@ -56,7 +56,6 b' import random'
56 import re
56 import re
57 import threading
57 import threading
58 import killdaemons as killmod
58 import killdaemons as killmod
59 import cPickle as pickle
60 import Queue as queue
59 import Queue as queue
61
60
62 processlock = threading.Lock()
61 processlock = threading.Lock()
@@ -5,7 +5,6 b''
5 # that have proven likely to expose bugs and divergent behaviour in
5 # that have proven likely to expose bugs and divergent behaviour in
6 # different encoding implementations.
6 # different encoding implementations.
7
7
8 from mercurial import parsers
9 from mercurial import store
8 from mercurial import store
10 import binascii, itertools, math, os, random, sys, time
9 import binascii, itertools, math, os, random, sys, time
11 import collections
10 import collections
@@ -125,7 +124,8 b' def makepart(rng, k):'
125 p = pickfrom(rng, firsttable)(rng)
124 p = pickfrom(rng, firsttable)(rng)
126 l = len(p)
125 l = len(p)
127 ps = [p]
126 ps = [p]
128 while l <= k:
127 maxl = rng.randint(1, k)
128 while l < maxl:
129 p = pickfrom(rng, resttable)(rng)
129 p = pickfrom(rng, resttable)(rng)
130 l += len(p)
130 l += len(p)
131 ps.append(p)
131 ps.append(p)
@@ -396,27 +396,6 b' Make sure rebase does not break for phas'
396 > [ui]
396 > [ui]
397 > logtemplate={rev} {desc} {phase}\n
397 > logtemplate={rev} {desc} {phase}\n
398 > EOF
398 > EOF
399 $ cat $HGRCPATH
400 [ui]
401 slash = True
402 interactive = False
403 [defaults]
404 backout = -d "0 0"
405 commit = -d "0 0"
406 tag = -d "0 0"
407 [extensions]
408 graphlog=
409 rebase=
410 mq=
411
412 [phases]
413 publish=False
414
415 [alias]
416 tglog = log -G --template "{rev}: '{desc}' {branches}\n"
417 theads = heads --template "{rev}: '{desc}' {branches}\n"
418 [ui]
419 logtemplate={rev} {desc} {phase}\n
420
399
421
400
422 $ hg init c4
401 $ hg init c4
@@ -1,4 +1,4 b''
1 import os, sys
1 import os
2 from hgext import color
2 from hgext import color
3 from mercurial import dispatch, ui
3 from mercurial import dispatch, ui
4
4
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now