Commits

Steve Borho committed daf777b

status: Allow 'R' files to be added

This 'un-forgets' a forget operation, turning an 'R' file into 'C' or 'M'

Closes #1367

Comments (0)

Files changed (1)

tortoisehg/hgtk/status.py

         return True
 
     def add_clicked(self, toolbutton, data=None):
-        add_list = self.relevant_checked_files('?I')
+        add_list = self.relevant_checked_files('?IR')
         if len(add_list) > 0:
             self.act.hg_add(add_list)
         else:
         make(_('View other'), other, 'MAru', None, self.is_merge())
         menu.append_sep()
         make(_('_Revert'), revert, 'MAR!ru', gtk.STOCK_MEDIA_REWIND)
+        make(_('_Add'), add, 'R', gtk.STOCK_ADD, paths=True)
         menu.append_sep()
         make(_('File History'), log, 'MARC!ru', 'menulog.ico')
         make(_('Annotate'), annotate, 'MARC!ru', 'menublame.ico')