Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.4, 2.0.5, and 2.1

stable rename: move view-layer code from compose_command() to show_command()

Changeset 0b0af862ba51

Parent ea7a7d3e0aca

by Yuya Nishihara

Changes to one file · Browse files at 0b0af862ba51 Showing diff from parent ea7a7d3e0aca Diff from another changeset...

 
231
232
233
234
235
 
236
237
238
239
 
 
240
241
242
 
273
274
275
276
277
 
 
278
279
280
 
231
232
233
 
 
234
235
 
 
 
236
237
238
239
240
 
271
272
273
 
 
274
275
276
277
278
@@ -231,12 +231,10 @@
  cmdline.append('-A')   cmdline.append(src)   cmdline.append(dest) - vcmdline = ' '.join(['hg'] + cmdline) - return (cmdline, vcmdline) + return cmdline   - def show_command(self, clinfo): - cl, vcl = clinfo - self.hgcmd_txt.setText(vcl) + def show_command(self, cmdline): + self.hgcmd_txt.setText('hg ' + ' '.join(cmdline))     def rename(self):   """execute the rename""" @@ -273,8 +271,8 @@
  if not res:   return   - cmdline, vcl = self.compose_command(src, dest) - self.show_command((cmdline, vcl)) + cmdline = self.compose_command(src, dest) + self.show_command(cmdline)   new_name = util.canonpath(self.root, self.root, new_name)   if self.isCaseFoldingOnWin():   # We do the rename ourselves if it's a pure casefolding