if (commandLine.getRevisionNamesFromFiles)
if (commandLine.overrideRevisionNames || newCollection.getReleaseName() == null)
	public static void main(String[] args) throws IOException,			DocumentException {		DetectorFactoryCollection.instance();		UpdateCommandLine commandLine = new UpdateCommandLine();		int argCount = commandLine.parse(args, 2, Integer.MAX_VALUE, USAGE);		int lastInputfile = args.length - 1;		if (outputFilename == null && args.length - argCount == 3) {			outputFilename = args[args.length - 1];			lastInputfile--;		}		if (outputFilename.equals("-")) outputFilename = null;		verbose = outputFilename != null;		String[] firstPathParts = getFilePathParts(args[argCount]);		int commonPrefix = firstPathParts.length;		for(int i = argCount+1; i <= lastInputfile; i++) {			commonPrefix = Math.min(commonPrefix, 					lengthCommonPrefix(							firstPathParts, 							getFilePathParts(args[i])));		}		if (verbose) {			System.out.println("Common prefix length: " + commonPrefix);		}				String origFilename = args[argCount++];		Project project = new Project();		BugCollection origCollection;		origCollection = new SortedBugCollection(				SortedBugCollection.MultiversionBugInstanceComparator.instance);		BugCollection oCollection = origCollection;		origCollection.readXML(origFilename, project);		if (commandLine.getRevisionNamesFromFiles)			origCollection.setReleaseName(firstPathParts[commonPrefix]);		for (BugInstance bug : origCollection.getCollection())			if (bug.getLastVersion() >= 0					&& bug.getFirstVersion() > bug.getLastVersion())				throw new IllegalStateException("Illegal Version range: "						+ bug.getFirstVersion() + ".." + bug.getLastVersion());		while (argCount <= lastInputfile) {			BugCollection newCollection = new SortedBugCollection(					SortedBugCollection.MultiversionBugInstanceComparator.instance);			String newFilename = args[argCount++];			if (verbose)				System.out.println("Merging " + newFilename);			project = new Project();			newCollection.readXML(newFilename, project);			if (commandLine.getRevisionNamesFromFiles)				newCollection.setReleaseName(getFilePathParts(newFilename)[commonPrefix]);			origCollection = mergeCollections(origCollection, newCollection);		}		if (outputFilename != null) 			origCollection.writeXML(outputFilename, project);		else			origCollection.writeXML(System.out, project);	}