Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9.2, 1.9.3, and 2.0

qrename small improvement

Changeset 339a2e9f49c9

Parent 10e5f21b014b

by patrice@lacouture.nom.fr

Changes to one file · Browse files at 339a2e9f49c9 Showing diff from parent 10e5f21b014b Diff from another changeset...

 
36
37
38
39
 
40
41
42
 
57
58
59
60
 
 
 
 
 
 
 
 
36
37
38
 
39
40
41
42
 
57
58
59
 
60
61
62
63
64
65
66
@@ -36,7 +36,7 @@
  lbl = QLabel(_('Rename patch <b>%s</b> to:') % (self.oldpatchname))   self.layout().addWidget(lbl)   - self.le = QLineEdit('') + self.le = QLineEdit(hglib.tounicode(self.oldpatchname))   self.layout().addWidget(self.le)     self.cmd = cmdui.Runner() @@ -57,4 +57,10 @@
  self.newpatchname = hglib.fromunicode(self.le.text())   cmdline = ['qrename', '--repository', self.repo.root, '--',   self.oldpatchname, self.newpatchname] - self.cmd.run(cmdline) + if self.newpatchname != self.oldpatchname: + cmdline = ['qrename', '--repository', self.repo.root, '--', + self.oldpatchname, self.newpatchname] + self.cmd.run(cmdline) + else: + self.close() +