##// END OF EJS Templates
narrowbundle2: when we handle a widen, mark the operation as unsafe...
Augie Fackler -
r38548:1ad873c3 default
parent child Browse files
Show More
@@ -408,6 +408,8 b' def _handlechangespec(op, inpart):'
408 topic='widen')
408 topic='widen')
409 repo._bookmarks = bmstore
409 repo._bookmarks = bmstore
410 if chgrpfile:
410 if chgrpfile:
411 op._widen_uninterr = repo.ui.uninterruptable()
412 op._widen_uninterr.__enter__()
411 # presence of _widen_bundle attribute activates widen handler later
413 # presence of _widen_bundle attribute activates widen handler later
412 op._widen_bundle = chgrpfile
414 op._widen_bundle = chgrpfile
413 # Set the new narrowspec if we're widening. The setnewnarrowpats() method
415 # Set the new narrowspec if we're widening. The setnewnarrowpats() method
@@ -455,6 +457,7 b' def handlechangegroup_widen(op, inpart):'
455 (undovfs.join(undofile), stringutil.forcebytestr(e)))
457 (undovfs.join(undofile), stringutil.forcebytestr(e)))
456
458
457 # Remove partial backup only if there were no exceptions
459 # Remove partial backup only if there were no exceptions
460 op._widen_uninterr.__exit__(None, None, None)
458 vfs.unlink(chgrpfile)
461 vfs.unlink(chgrpfile)
459
462
460 def setup():
463 def setup():
General Comments 0
You need to be logged in to leave comments. Login now