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

rename: limit paths to filetree of current repo.root

Changeset dd0a30800e67

Parent 80ebe4a7ad0f

by Johan Samyn

Changes to one file · Browse files at dd0a30800e67 Showing diff from parent 80ebe4a7ad0f Diff from another changeset...

 
266
267
268
 
 
 
 
 
 
 
 
 
 
269
270
271
 
352
353
354
 
355
 
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
 
362
363
364
365
366
@@ -266,6 +266,16 @@
  if not os.path.exists(src):   qtlib.WarningMsgBox(_('Rename'), _('Source does not exists.'))   return + fullsrc = os.path.abspath(src) + if not fullsrc.startswith(self.repo.root): + qtlib.ErrorMsgBox(_('Rename Error'), + _('The source must be within the repository tree.')) + return + fulldest = os.path.abspath(dest) + if not fulldest.startswith(self.repo.root): + qtlib.ErrorMsgBox(_('Rename Error'), + _('The destination must be within the repository tree.')) + return     # prepare command line   #cmdline, vcl = self.compose_command(self.get_src(), self.get_dest()) @@ -352,4 +362,5 @@
     def run(ui, *pats, **opts): + qtlib.InfoMsgBox('Rename/Copy', 'pats = %s' % str(pats), 'opts = %s' % str(opts))   return RenameDialog(ui, pats, **opts)