1376N/A * The contents of this file are subject to the terms of the 1376N/A * Common Development and Distribution License (the "License"). 1376N/A * You may not use this file except in compliance with the License. 1376N/A * language governing permissions and limitations under the License. 1376N/A * When distributing Covered Code, include this CDDL HEADER in each 1376N/A * If applicable, add the following below this CDDL HEADER, with the 1376N/A * fields enclosed by brackets "[]" replaced with your own identifying 1376N/A * information: Portions Copyright [yyyy] [name of copyright owner] 1376N/A * Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. 1376N/A * Access to an AccuRev repository (here an actual user workspace) 1377N/A * AccuRev requires that a user logs into their system before it can be used. So 1377N/A * on the machine acting as the OpenGrok server, some valid user has to be 1377N/A * permanently logged in. (accurev login -n <user>) 1377N/A * It appears that the file path that is given to all these methods is the 1377N/A * complete path to the file which includes the path to the root of the source 1377N/A * location. This means that when using the -P option of OpenGrok to make all 1377N/A * the directories pointed to by the source root to be seen as separate projects 1377N/A * is not all as it would seem. The History GURU always starts building the 1377N/A * history cache using the source root. Well there is NO HISTORY for anything at 1377N/A * the source root because it is not part of an actual AccuRev depot. The 1377N/A * directories within the source root directory represent the work areas of 1377N/A * AccuRev and it is those areas where history can be obtained. This 1377N/A * implementation allows those directories to be symbolic links to the actual 1377N/A * There is only one associated AccuRev depot associated with workspaces. 1377N/A * The property name used to obtain the client command for this repository. 1377N/A "org.opensolaris.opengrok.history.AccuRev";
1377N/A * The command to use to access the repository if none was given explicitly 1377N/A * ----------------------------------------------- Strip off source root 1377N/A * to get to workspace path. 1377N/A *----------------------------------------------- 1377N/A "Did not find annotation in line " 1377N/A * Get an executor to be used for retrieving the history log for the given 1377N/A * file. (used by AccuRevHistoryParser). 1376N/A * @param file file for which history is to be retrieved. 1376N/A * @return An Executor ready to be started 1377N/A * ----------------------------------------------- Strip off source root 1377N/A * to get to workspace path. 1377N/A *----------------------------------------------- 1377N/A cmd.
add(
"keep");
// get a list of all 'real' file versions 1377N/A * ----------------------------------------------------------------- The 1377N/A * only way to guarantee getting the contents of a file is to fire off 1377N/A * an AccuRev 'stat'us command to get the element ID number for the 1377N/A * subsequent 'cat' command. (Element ID's are unique for a file, unless 1377N/A * evil twins are present) This is because it is possible that the file 1377N/A * may have been moved to a different place in the depot. The 'stat' 1377N/A * command will produce a line with the format: 1377N/A * <filePath> <elementID> <virtualVersion> (<realVersion>) (<status>) 1377N/A * /./myFile e:17715 CP.73_Depot/2 (3220/2) (backed) 1377N/A *----------------------------------------------------------------- 1377N/A * ------------------------------------------ This really gets the 1377N/A *------------------------------------------ 1376N/A * Check if a given path is associated with an AccuRev workspace 1377N/A * The AccuRev 'info' command provides a Depot name when in a known 1377N/A * workspace. Otherwise, the Depot name will be missing. 1376N/A * @param path The presumed path to an AccuRev workspace directory. 1376N/A * @return true if the given path is in the depot, false otherwise