Show More
@@ -479,7 +479,7 b' def synthesize(ui, repo, descpath, **opt' | |||||
479 | date = min(0x7fffffff, max(0, date)) |
|
479 | date = min(0x7fffffff, max(0, date)) | |
480 | user = random.choice(words) + '@' + random.choice(words) |
|
480 | user = random.choice(words) + '@' + random.choice(words) | |
481 | mc = context.memctx(repo, pl, makeline(minimum=2), |
|
481 | mc = context.memctx(repo, pl, makeline(minimum=2), | |
482 |
sorted(changes |
|
482 | sorted(changes), | |
483 | filectxfn, user, '%d %d' % (date, pick(tzoffset))) |
|
483 | filectxfn, user, '%d %d' % (date, pick(tzoffset))) | |
484 | newnode = mc.commit() |
|
484 | newnode = mc.commit() | |
485 | heads.add(repo.changelog.rev(newnode)) |
|
485 | heads.add(repo.changelog.rev(newnode)) |
@@ -31,7 +31,7 b' def parsemeta(text):' | |||||
31 | return meta, (s + 2) |
|
31 | return meta, (s + 2) | |
32 |
|
32 | |||
33 | def packmeta(meta, text): |
|
33 | def packmeta(meta, text): | |
34 |
keys = sorted(meta |
|
34 | keys = sorted(meta) | |
35 | metatext = "".join("%s: %s\n" % (k, meta[k]) for k in keys) |
|
35 | metatext = "".join("%s: %s\n" % (k, meta[k]) for k in keys) | |
36 | return "\1\n%s\1\n%s" % (metatext, text) |
|
36 | return "\1\n%s\1\n%s" % (metatext, text) | |
37 |
|
37 |
@@ -25,7 +25,7 b' def writeauth(items):' | |||||
25 |
|
25 | |||
26 | def dumpdict(dict): |
|
26 | def dumpdict(dict): | |
27 | return '{' + ', '.join(['%s: %s' % (k, dict[k]) |
|
27 | return '{' + ', '.join(['%s: %s' % (k, dict[k]) | |
28 |
for k in sorted(dict |
|
28 | for k in sorted(dict)]) + '}' | |
29 |
|
29 | |||
30 | def test(auth, urls=None): |
|
30 | def test(auth, urls=None): | |
31 | print('CFG:', dumpdict(auth)) |
|
31 | print('CFG:', dumpdict(auth)) |
General Comments 0
You need to be logged in to leave comments.
Login now