@@ -405,7 +405,12 @@ webui.SideBarView = function(mainView, noEventHandlers) {
405
405
} else {
406
406
model = line ;
407
407
}
408
- var isForCurrentUser = ( uncommittedItems . indexOf ( model ) > - 1 ) ;
408
+ var isForCurrentUser ;
409
+ if ( model . indexOf ( " " ) > - 1 ) {
410
+ isForCurrentUser = ( uncommittedItems . indexOf ( model . substring ( 1 , model . length - 1 ) ) > - 1 ) ;
411
+ } else {
412
+ isForCurrentUser = ( uncommittedItems . indexOf ( model ) > - 1 ) ;
413
+ }
409
414
if ( ! isForCurrentUser ) {
410
415
flag = 1 ;
411
416
}
@@ -478,7 +483,12 @@ webui.SideBarView = function(mainView, noEventHandlers) {
478
483
} else {
479
484
model = line ;
480
485
}
481
- var isForCurrentUser = ( uncommittedItems . indexOf ( model ) > - 1 ) ;
486
+ var isForCurrentUser ;
487
+ if ( model . indexOf ( " " ) > - 1 ) {
488
+ isForCurrentUser = ( uncommittedItems . indexOf ( model . substring ( 1 , model . length - 1 ) ) > - 1 ) ;
489
+ } else {
490
+ isForCurrentUser = ( uncommittedItems . indexOf ( model ) > - 1 ) ;
491
+ }
482
492
if ( ! isForCurrentUser ) {
483
493
flag = 1 ;
484
494
}
@@ -2090,7 +2100,12 @@ webui.ChangedFilesView = function(workspaceView, type, label) {
2090
2100
} else {
2091
2101
model = line ;
2092
2102
}
2093
- var isForCurrentUser = ( uncommittedItems . indexOf ( model ) > - 1 ) ;
2103
+ var isForCurrentUser ;
2104
+ if ( model . indexOf ( " " ) > - 1 ) {
2105
+ isForCurrentUser = ( uncommittedItems . indexOf ( model . substring ( 1 , model . length - 1 ) ) > - 1 ) ;
2106
+ } else {
2107
+ isForCurrentUser = ( uncommittedItems . indexOf ( model ) > - 1 ) ;
2108
+ }
2094
2109
var cssClass = isForCurrentUser ? 'list-group-item available' : 'list-group-item unavailable' ;
2095
2110
2096
2111
if ( isForCurrentUser ) {
@@ -2259,7 +2274,7 @@ webui.ChangedFilesView = function(workspaceView, type, label) {
2259
2274
var excluded = excluding != undefined && excluding . indexOf ( child . status ) != - 1 ;
2260
2275
if ( $ ( child ) . hasClass ( "active" ) && ( $ ( child ) . hasClass ( "available" ) ^ onlyUnavailable ) && included && ! excluded ) {
2261
2276
if ( stringifyFilenames )
2262
- files += '"' + ( child . model ) + '" ' ;
2277
+ files += ( ( child . model ) + ' ' ) ;
2263
2278
else
2264
2279
files . push ( child ) ;
2265
2280
}
0 commit comments