Commit d084a91f authored by Steve Borho's avatar Steve Borho
Browse files

update: allow update to 'null' target revision

parent 33c7252028bf
......@@ -161,6 +161,9 @@ class UpdateDialog(QDialog):
if merge:
self.p2_info.update(self.ctxs[1])
new_rev = hglib.fromunicode(self.rev_combo.currentText())
if new_rev.lower() == 'null':
self.update_btn.setEnabled(True)
return
try:
new_ctx = self.repo[new_rev]
if not merge and new_ctx.rev() == self.ctxs[0].rev():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment