Commits

Anonymous committed 76d18cd

fixed Diff to tip

  • Participants
  • Parent commits 4fe5c18

Comments (0)

Files changed (1)

lib/Padre/Plugin/HG.pm

 	my $main = Padre->ide->wx->main;
 	 $self->{project_path} = $self->_project_root($file);
         my $full_path = File::Spec->catdir(($path,$file));
-	return $main->error("Not a $VCS Project") if ! $self->{project_path} ;
- 	Padre::Plugin::HG::DiffView->showDiff($self,$full_path );	
+        return $main->error("Not a $VCS Project") if ! $self->{project_path} ;
+ 	my $differences = $self->vcs_diff($file, $path);	
+	Padre::Plugin::HG::DiffView->showDiff($self,$differences);
+
 	
 
 }
         my $full_path = File::Spec->catdir(($path,$file));
 	return $main->error("Not a $VCS Project") if ! $self->{project_path} ;
  	my $changeset = Padre::Plugin::HG::LogView->showList($self,$full_path);
- 	my $differences = $self->vcs_diff_revision($file, $path, $changeset);	
-	Padre::Plugin::HG::DiffView->showDiff($self,$differences);	
+	my $differences = $self->vcs_diff_revision($file, $path, $changeset);	
+	Padre::Plugin::HG::DiffView->showDiff($self,$differences);
 
 
 }