Mercurial > hg-stable
comparison mercurial/phases.py @ 16588:72319bfd7966
phases: line.strip().split() == line.split()
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Fri, 04 May 2012 15:24:00 +0200 |
parents | 39d1f83eb05d |
children | 3f85cef66dcc |
comparison
equal
deleted
inserted
replaced
16587:61e31cab7d93 | 16588:72319bfd7966 |
---|---|
111 roots = [set() for i in allphases] | 111 roots = [set() for i in allphases] |
112 try: | 112 try: |
113 f = repo.sopener('phaseroots') | 113 f = repo.sopener('phaseroots') |
114 try: | 114 try: |
115 for line in f: | 115 for line in f: |
116 phase, nh = line.strip().split() | 116 phase, nh = line.split() |
117 roots[int(phase)].add(bin(nh)) | 117 roots[int(phase)].add(bin(nh)) |
118 finally: | 118 finally: |
119 f.close() | 119 f.close() |
120 except IOError, inst: | 120 except IOError, inst: |
121 if inst.errno != errno.ENOENT: | 121 if inst.errno != errno.ENOENT: |