Commits

Us...@winxpvm1.localdomain  committed 54ed3a2

commit now possible from project root

  • Participants
  • Parent commits f81d2f9

Comments (0)

Files changed (2)

File lib/Padre/Plugin/HG/ProjectCommit.pm

 	}
         # this item is selected - do whatever is needed with it
         my $itemObj = $self->{file_listbox}->GetItem($item);
-        $file_list .= '"'.$itemObj->GetText().'" ';
+        $file_list .= ' "'.$itemObj->GetText().'" ';
        
     }
     

File lib/Padre/Plugin/HG/StatusTree.pm

                 Wx::Event::EVT_MENU(
                        $self, $push,
                        sub {  $HG->push_project($selected_file, $project_name) }
-               );   
+               ); 
+              my $commit = $menu->Append(
+                        -1,
+                       Wx::gettext( 'Commit' ));
+                    
+                Wx::Event::EVT_MENU(
+                       $self, $commit,
+                       sub {  require Padre::Plugin::HG::ProjectCommit;
+                               Padre::Plugin::HG::ProjectCommit->showList($HG); }
+               );     
         }
         
         elsif ($selected_type ne 'dir' and $selected_type ne 'root')