Commits

Johan Samyn  committed b7b2052

archive: only archive files modified/added in rev (gtk)

Closes #251

  • Participants
  • Parent commits dc5cf41
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgtk/archive.py

 
         table.add_row(_('Archive revision:'), self.combo)
 
+        self.opt_files_in_rev = gtk.CheckButton(
+                    _('Only files modified/created in this revision'))
+        table.add_row('', self.opt_files_in_rev, ypad=0)
+
         ## dest combo & browse button
         self.destentry = gtk.Entry()
         self.destentry.set_width_chars(46)
             cmdline.append(rev)
         cmdline.append('-t')
         cmdline.append(type)
+        if self.opt_files_in_rev.get_active():
+            ctx = self.repo[rev]
+            for f in ctx.files():
+                cmdline.append('-I')
+                cmdline.append(f)
         cmdline.append('--')
         cmdline.append(hglib.fromutf(dest))