Changeset b50e32119b16…
Parent c84e24f95c20…
by
Changes to one file · Browse files at b50e32119b16 Showing diff from parent c84e24f95c20 Diff from another changeset...
@@ -20,7 +20,7 @@
class UpdateDialog(QDialog):
- def __init__(self, rev=None, repo=None, parent=None):
+ def __init__(self, rev=None, repo=None, parent=None, opts=None):
super(UpdateDialog, self).__init__(parent, Qt.WindowTitleHint or
Qt.WindowSystemMenuHint)
@@ -98,6 +98,8 @@ optbox.addWidget(self.merge_chk)
optbox.addWidget(self.showlog_chk)
+ self.discard_chk.setChecked(bool(opts.get('clean', False)))
+
## command widget
self.cmd = cmdui.Widget()
self.cmd.commandStarted.connect(self.command_started)
@@ -186,4 +188,4 @@ rev = opts.get('rev')
elif len(pats) == 1:
rev = [pats[0]]
- return UpdateDialog(rev)
+ return UpdateDialog(rev, opts=opts)
|
Loading...