Show More
@@ -192,7 +192,7 b' class shelvedstate(object):' | |||
|
192 | 192 | d['nodestoremove'] = [nodemod.bin(h) |
|
193 | 193 | for h in d['nodestoremove'].split(' ')] |
|
194 | 194 | except (ValueError, TypeError, KeyError) as err: |
|
195 | raise error.CorruptedState(str(err)) | |
|
195 | raise error.CorruptedState(pycompat.bytestr(err)) | |
|
196 | 196 | |
|
197 | 197 | @classmethod |
|
198 | 198 | def _getversion(cls, repo): |
@@ -201,7 +201,7 b' class shelvedstate(object):' | |||
|
201 | 201 | try: |
|
202 | 202 | version = int(fp.readline().strip()) |
|
203 | 203 | except ValueError as err: |
|
204 | raise error.CorruptedState(str(err)) | |
|
204 | raise error.CorruptedState(pycompat.bytestr(err)) | |
|
205 | 205 | finally: |
|
206 | 206 | fp.close() |
|
207 | 207 | return version |
@@ -251,7 +251,7 b' class shelvedstate(object):' | |||
|
251 | 251 | if d.get('activebook', '') != cls._noactivebook: |
|
252 | 252 | obj.activebookmark = d.get('activebook', '') |
|
253 | 253 | except (error.RepoLookupError, KeyError) as err: |
|
254 | raise error.CorruptedState(str(err)) | |
|
254 | raise error.CorruptedState(pycompat.bytestr(err)) | |
|
255 | 255 | |
|
256 | 256 | return obj |
|
257 | 257 | |
@@ -745,7 +745,7 b' def _rebaserestoredcommit(ui, repo, opts' | |||
|
745 | 745 | try: |
|
746 | 746 | rebase.rebase(ui, repo, **{ |
|
747 | 747 | r'rev': [shelvectx.rev()], |
|
748 |
r'dest': |
|
|
748 | r'dest': "%d" % tmpwctx.rev(), | |
|
749 | 749 | r'keep': True, |
|
750 | 750 | r'tool': opts.get('tool', ''), |
|
751 | 751 | }) |
@@ -881,7 +881,7 b' def _dounshelve(ui, repo, *shelved, **op' | |||
|
881 | 881 | raise |
|
882 | 882 | cmdutil.wrongtooltocontinue(repo, _('unshelve')) |
|
883 | 883 | except error.CorruptedState as err: |
|
884 | ui.debug(str(err) + '\n') | |
|
884 | ui.debug(pycompat.bytestr(err) + '\n') | |
|
885 | 885 | if continuef: |
|
886 | 886 | msg = _('corrupted shelved state file') |
|
887 | 887 | hint = _('please run hg unshelve --abort to abort unshelve ' |
General Comments 0
You need to be logged in to leave comments.
Login now