@ -160,7 +160,7 @@ public class RevertCommand extends GitCommand<RevCommit> {
String revertName = srcCommit . getId ( ) . abbreviate ( 7 ) . name ( )
String revertName = srcCommit . getId ( ) . abbreviate ( 7 ) . name ( )
+ " " + srcCommit . getShortMessage ( ) ; //$NON-NLS-1$
+ " " + srcCommit . getShortMessage ( ) ; //$NON-NLS-1$
ResolveMerger merger = ( ResolveMerger ) MergeStrategy . RESOL VE
ResolveMerger merger = ( ResolveMerger ) MergeStrategy . RECURSI VE
. newMerger ( repo ) ;
. newMerger ( repo ) ;
merger . setWorkingTreeIterator ( new FileTreeIterator ( repo ) ) ;
merger . setWorkingTreeIterator ( new FileTreeIterator ( repo ) ) ;
merger . setBase ( srcCommit . getTree ( ) ) ;
merger . setBase ( srcCommit . getTree ( ) ) ;
@ -194,14 +194,15 @@ public class RevertCommand extends GitCommand<RevCommit> {
merger . getBaseCommit ( 0 , 1 ) ,
merger . getBaseCommit ( 0 , 1 ) ,
new ObjectId [ ] { headCommit . getId ( ) ,
new ObjectId [ ] { headCommit . getId ( ) ,
srcParent . getId ( ) } ,
srcParent . getId ( ) } ,
MergeStatus . FAILED , MergeStrategy . RESOL VE ,
MergeStatus . FAILED , MergeStrategy . RECURSI VE ,
merger . getMergeResults ( ) , failingPaths , null ) ;
merger . getMergeResults ( ) , failingPaths , null ) ;
else
else
failingResult = new MergeResult ( null ,
failingResult = new MergeResult ( null ,
merger . getBaseCommit ( 0 , 1 ) ,
merger . getBaseCommit ( 0 , 1 ) ,
new ObjectId [ ] { headCommit . getId ( ) ,
new ObjectId [ ] { headCommit . getId ( ) ,
srcParent . getId ( ) } ,
srcParent . getId ( ) } ,
MergeStatus . CONFLICTING , MergeStrategy . RESOLVE ,
MergeStatus . CONFLICTING ,
MergeStrategy . RECURSIVE ,
merger . getMergeResults ( ) , failingPaths , null ) ;
merger . getMergeResults ( ) , failingPaths , null ) ;
if ( ! merger . failed ( ) & & ! unmergedPaths . isEmpty ( ) ) {
if ( ! merger . failed ( ) & & ! unmergedPaths . isEmpty ( ) ) {
String message = new MergeMessageFormatter ( )
String message = new MergeMessageFormatter ( )