Subversion Repositories DevTools

Rev

Rev 7288 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7288 Rev 7457
Line 256... Line 256...
256
						  }
256
						  }
257
                        
257
                        
258
                       }
258
                       }
259
              }
259
              }
260
 
260
 
-
 
261
              if (test.indexOf('isGITTag')!=-1) {
-
 
262
                  var GITShar1 = /^[0-9a-z]{40}$/i;
-
 
263
                  var GITWip = /^[A-Za-z][A-Za-z0-9\.\-]+\.WIP$/;
-
 
264
                  var GITvTag = /^v[A-Za-z0-9\.\-]+$/;
-
 
265
 
-
 
266
                  if ( val.search(GITShar1) < 0 ) {
-
 
267
                      // Is a NOT a SHAR1
-
 
268
                      if ( val.search(GITWip) < 0 ) {
-
 
269
                          // Is not a xxxxx.WIP
-
 
270
                          if ( val.search(GITvTag) < 0 ) {
-
 
271
                              // Is not a version Tag as they start with a 'v'
-
 
272
                              errors += prefix + ' Git reference not recognized\n';
-
 
273
                          }
-
 
274
                      }
-
 
275
                  }
-
 
276
              }
-
 
277
 
-
 
278
              // Manually built GIT packages are not supported
-
 
279
              if (test.indexOf('isGITPegTag')!=-1) {
-
 
280
                  errors += prefix + ' Not yet implemented\n';
-
 
281
              }
-
 
282
 
-
 
283
              if (test.indexOf('isGITPath')!=-1) {
-
 
284
                 // GIT Base Path validation
-
 
285
                 var GITPathValidCharsRE = /^[0-9a-z_\.\-\/]+$/i;
-
 
286
                 var GITPathInValidSlashAtBOL = /^\/.*$/i;
-
 
287
                 var GITPathInValidSlashAtEOL = /\/$/i;
-
 
288
                 var GITPathInValidSlash = /^.*\/\/.*$/i;
-
 
289
                 var GITPathEls = /^.*\/.*\/.*/i;
-
 
290
                 var GITPathUrl = /^[a-z]+:\/\//i;
-
 
291
 
-
 
292
                 if ( val.search(GITPathUrl) >= 0 )
-
 
293
                     errors += prefix + ' must start with a symbolic Repo Server name and not a URL\n';
-
 
294
                 else if ( val.search(GITPathValidCharsRE) < 0 )
-
 
295
                    errors += prefix + ' uses invalid character. Allowed characters are / A-Z a-z 0-9 . - _\n';
-
 
296
                 else if (val.search(GITPathInValidSlashAtBOL) >= 0)
-
 
297
                    errors += prefix + ' begins with a /. This is not allowed.\n';
-
 
298
                 else if (val.search(GITPathInValidSlashAtEOL) >= 0)
-
 
299
                    errors += prefix + ' ends with a /. This is not allowed.\n';
-
 
300
                 else if (val.search(GITPathInValidSlash) >= 0)
-
 
301
                    errors += prefix + ' uses //. This is not allowed.\n';
-
 
302
                 else if (val.search(GITPathEls) < 0)
-
 
303
                       errors += prefix + ' does not contain sufficient elements\n';
-
 
304
              }
-
 
305
 
261
              // No longer used in this simple form
306
              // No longer used in this simple form
262
              if (test.indexOf('isVersionNumber')!=-1) {
307
              if (test.indexOf('isVersionNumber')!=-1) {
263
                 REresults = -1;
308
                 REresults = -1;
264
                 if (REresults < 0) errors += prefix + ' isVersionNumber is no longer supported in this form';
309
                 if (REresults < 0) errors += prefix + ' isVersionNumber is no longer supported in this form';
265
              }
310
              }