equal
deleted
inserted
replaced
33 if len(sys.argv) > 3: |
33 if len(sys.argv) > 3: |
34 out = open(sys.argv[3], "ab") |
34 out = open(sys.argv[3], "ab") |
35 |
35 |
36 # variables with empty values may not exist on all platforms, filter |
36 # variables with empty values may not exist on all platforms, filter |
37 # them now for portability sake. |
37 # them now for portability sake. |
38 env = [(k, v) for k, v in os.environ.iteritems() |
38 env = [(k, v) for k, v in os.environ.items() |
39 if k.startswith("HG_") and v] |
39 if k.startswith("HG_") and v] |
40 env.sort() |
40 env.sort() |
41 |
41 |
42 out.write("%s hook: " % name) |
42 out.write("%s hook: " % name) |
43 if os.name == 'nt': |
43 if os.name == 'nt': |