Differences From Artifact [17595c8a94]:
- File src/db.c — part of check-in [e35dbea1e3] at 2014-03-18 15:59:29 on branch trunk — Since file_simplify_name() already was modified to handle the extended path prefix correctly [95f004b1c535c545], this special Cygwin handling is no longer necessary. (user: jan.nijtmans size: 84257) [more...]
To Artifact [b24c668016]:
- File src/db.c — part of check-in [dc10f8d74c] at 2014-03-26 21:54:40 on branch fix-cat-dash-R — Fix problem when using "fossil cat" when specifying repository via command line argument (with -R) (reported on ML) Problem was the use of file_tree_name() which call db_must_be_within_tree(). Add a variable in the Global structure 'g' to remember if -R|--repository argument was specified and don't call file_tree_name() if it's the case (since user expect file relative to repository. (Pending review...) (user: mgagnon size: 84309)
| ︙ | |||
1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 | 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 | + + + |
** option to locate the repository. If no such option is available, then
** use the repository of the open checkout if there is one.
**
** Error out if the repository cannot be opened.
*/
void db_find_and_open_repository(int bFlags, int nArgUsed){
const char *zRep = find_option("repository", "R", 1);
if (zRep){
g.useRepositoryFromCmdArg = 1;
}
if( zRep==0 && nArgUsed && g.argc==nArgUsed+1 ){
zRep = g.argv[nArgUsed];
}
if( zRep==0 ){
if( db_open_local(0)==0 ){
goto rep_not_found;
}
|
| ︙ |