##// END OF EJS Templates
rebase: extract _assignworkingcopy...
Phil Cohen -
r35334:8dba1754 default
parent child Browse files
Show More
@@ -382,14 +382,16 b' class rebaseruntime(object):'
382 382
383 383 self.prepared = True
384 384
385 def _performrebase(self, tr):
386 repo, ui = self.repo, self.ui
387 # Assign a working copy object.
385 def _assignworkingcopy(self):
388 386 if self.inmemory:
389 387 from mercurial.context import overlayworkingctx
390 388 self.wctx = overlayworkingctx(self.repo)
391 389 else:
392 390 self.wctx = self.repo[None]
391
392 def _performrebase(self, tr):
393 self._assignworkingcopy()
394 repo, ui = self.repo, self.ui
393 395 if self.keepbranchesf:
394 396 # insert _savebranch at the start of extrafns so if
395 397 # there's a user-provided extrafn it can clobber branch if
General Comments 0
You need to be logged in to leave comments. Login now