File tree 1 file changed +13
-5
lines changed
1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -140,18 +140,26 @@ module.exports = {
140
140
prepareWcForCommitting : function prepareWcForCommitting ( wcPath ) {
141
141
var unversionedFiles = module . exports . getUnversionedFiles ( wcPath ) ;
142
142
var missingFiles = module . exports . getMissingFiles ( wcPath ) ;
143
+ var chunkSize = 20 ;
143
144
144
- _ . forEach ( unversionedFiles , function svnAddNew ( newFileEntry ) {
145
- shell . exec ( util . format ( 'svn add "%s"' , newFileEntry . absPath ) , {
145
+ _ . forEach ( _ . chunk ( unversionedFiles , chunkSize ) , function svnAddNew ( filesInChunk ) {
146
+ var paths = _ . flatMap ( filesInChunk , function extractAbsolutePaths ( entry ) {
147
+ return [ entry . absPath ] ;
148
+ } ) ;
149
+
150
+ shell . exec ( util . format ( 'svn add "%s"' , paths . join ( '" "' ) ) , {
146
151
silent : true
147
152
} ) ;
148
153
} ) ;
149
154
150
- _ . forEach ( missingFiles , function svnDeleteMissing ( missingFileEntry ) {
151
- shell . exec ( util . format ( 'svn delete "%s"' , missingFileEntry . absPath ) , {
155
+ _ . forEach ( _ . chunk ( missingFiles , chunkSize ) , function svnDeleteMissing ( filesInChunk ) {
156
+ var paths = _ . flatMap ( filesInChunk , function extractAbsolutePaths ( entry ) {
157
+ return [ entry . absPath ] ;
158
+ } ) ;
159
+
160
+ shell . exec ( util . format ( 'svn delete "%s"' , paths . join ( '" "' ) ) , {
152
161
silent : true
153
162
} ) ;
154
163
} ) ;
155
164
}
156
-
157
165
} ;
You can’t perform that action at this time.
0 commit comments