Mercurial > hg
comparison mercurial/revlog.py @ 2354:16276b1c0658
Manifest groups may be empty, so don't abort in this case (fixes issue210).
Only abort on empty changelog and file revlogs.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Wed, 31 May 2006 22:25:20 +0200 |
parents | 9c15f85e61b1 |
children | 568e58eed096 |
comparison
equal
deleted
inserted
replaced
2353:0c0bfea3f72a | 2354:16276b1c0658 |
---|---|
1194 t, r, chain, prev = r, r + 1, node, node | 1194 t, r, chain, prev = r, r + 1, node, node |
1195 base = self.base(t) | 1195 base = self.base(t) |
1196 start = self.start(base) | 1196 start = self.start(base) |
1197 end = self.end(t) | 1197 end = self.end(t) |
1198 | 1198 |
1199 if node is None: | |
1200 raise RevlogError(_("group to be added is empty")) | |
1201 return node | 1199 return node |
1202 | 1200 |
1203 def strip(self, rev, minlink): | 1201 def strip(self, rev, minlink): |
1204 if self.count() == 0 or rev >= self.count(): | 1202 if self.count() == 0 or rev >= self.count(): |
1205 return | 1203 return |