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

archive: assure using filepaths relative to repo.root

when only archiving the files in the selected rev

Changeset cabfc74b5b47

Parent 85ad8c50bca0

by Johan Samyn

Changes to one file · Browse files at cabfc74b5b47 Showing diff from parent 85ad8c50bca0 Diff from another changeset...

 
321
322
323
 
 
 
 
324
325
326
 
337
338
339
 
340
341
342
 
350
351
352
 
 
353
354
355
 
321
322
323
324
325
326
327
328
329
330
 
341
342
343
344
345
346
347
 
355
356
357
358
359
360
361
362
@@ -321,6 +321,10 @@
  # prepare command line   cmdline = self.compose_command(dest, type)   + if self.files_in_rev_chk.isChecked(): + self.savedcwd = os.getcwd() + os.chdir(self.repo.root) +   # start archiving   self.cmd.run(cmdline)   @@ -337,6 +341,7 @@
  self.dest_edit.setEnabled(False)   self.rev_combo.setEnabled(False)   self.dest_btn.setEnabled(False) + self.files_in_rev_chk.setEnabled(False)   self.filesradio.setEnabled(False)   self.tarradio.setEnabled(False)   self.tbz2radio.setEnabled(False) @@ -350,6 +355,8 @@
  self.detail_btn.setShown(True)     def command_finished(self, ret): + if self.files_in_rev_chk.isChecked(): + os.chdir(self.savedcwd)   if ret is not 0 or self.cmd.is_show_output()\   or self.keep_open_chk.isChecked():   if not self.cmd.is_show_output():