##// END OF EJS Templates
shelve: handle empty parents and nodestoremove in shelvedstate (issue6748)
Jason R. Coombs -
r50455:5f778b3a stable
parent child Browse files
Show More
@@ -278,9 +278,9 b' class shelvedstate:'
278 try:
278 try:
279 d[b'originalwctx'] = bin(d[b'originalwctx'])
279 d[b'originalwctx'] = bin(d[b'originalwctx'])
280 d[b'pendingctx'] = bin(d[b'pendingctx'])
280 d[b'pendingctx'] = bin(d[b'pendingctx'])
281 d[b'parents'] = [bin(h) for h in d[b'parents'].split(b' ')]
281 d[b'parents'] = [bin(h) for h in d[b'parents'].split(b' ') if h]
282 d[b'nodestoremove'] = [
282 d[b'nodestoremove'] = [
283 bin(h) for h in d[b'nodestoremove'].split(b' ')
283 bin(h) for h in d[b'nodestoremove'].split(b' ') if h
284 ]
284 ]
285 except (ValueError, KeyError) as err:
285 except (ValueError, KeyError) as err:
286 raise error.CorruptedState(stringutil.forcebytestr(err))
286 raise error.CorruptedState(stringutil.forcebytestr(err))
General Comments 0
You need to be logged in to leave comments. Login now