equal
deleted
inserted
replaced
99 - content is pushed as draft |
99 - content is pushed as draft |
100 |
100 |
101 """ |
101 """ |
102 |
102 |
103 |
103 |
104 import errno |
|
105 import struct |
104 import struct |
106 |
105 |
107 from .i18n import _ |
106 from .i18n import _ |
108 from .node import ( |
107 from .node import ( |
109 bin, |
108 bin, |
200 for line in f: |
199 for line in f: |
201 phase, nh = line.split() |
200 phase, nh = line.split() |
202 roots[int(phase)].add(bin(nh)) |
201 roots[int(phase)].add(bin(nh)) |
203 finally: |
202 finally: |
204 f.close() |
203 f.close() |
205 except IOError as inst: |
204 except FileNotFoundError: |
206 if inst.errno != errno.ENOENT: |
|
207 raise |
|
208 if phasedefaults: |
205 if phasedefaults: |
209 for f in phasedefaults: |
206 for f in phasedefaults: |
210 roots = f(repo, roots) |
207 roots = f(repo, roots) |
211 dirty = True |
208 dirty = True |
212 return roots, dirty |
209 return roots, dirty |