##// END OF EJS Templates
merge with stable
Matt Mackall -
r19327:cf1b0a58 merge default
parent child Browse files
Show More
@@ -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
@@ -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;
@@ -124,7 +124,8 b' def makepart(rng, k):'
124 p = pickfrom(rng, firsttable)(rng)
124 p = pickfrom(rng, firsttable)(rng)
125 l = len(p)
125 l = len(p)
126 ps = [p]
126 ps = [p]
127 while l <= k:
127 maxl = rng.randint(1, k)
128 while l < maxl:
128 p = pickfrom(rng, resttable)(rng)
129 p = pickfrom(rng, resttable)(rng)
129 l += len(p)
130 l += len(p)
130 ps.append(p)
131 ps.append(p)
General Comments 0
You need to be logged in to leave comments. Login now