Show More
@@ -59,6 +59,13 b' class processlogger(object):' | |||||
59 |
|
59 | |||
60 | def log(self, ui, event, msg, opts): |
|
60 | def log(self, ui, event, msg, opts): | |
61 | script = self._scripts[event] |
|
61 | script = self._scripts[event] | |
|
62 | maxmsg = 100000 | |||
|
63 | if len(msg) > maxmsg: | |||
|
64 | # Each env var has a 128KiB limit on linux. msg can be long, in | |||
|
65 | # particular for command event, where it's the full command line. | |||
|
66 | # Prefer truncating the message than raising "Argument list too | |||
|
67 | # long" error. | |||
|
68 | msg = msg[:maxmsg] + b' (truncated)' | |||
62 | env = { |
|
69 | env = { | |
63 | b'EVENT': event, |
|
70 | b'EVENT': event, | |
64 | b'HGPID': os.getpid(), |
|
71 | b'HGPID': os.getpid(), |
General Comments 0
You need to be logged in to leave comments.
Login now