2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
|
verify_all_options();
if( g.argc!=2 && g.argc!=3 ) usage("?REPOSITORY?");
if( isUiCmd && 3==g.argc && file_isdir(g.argv[2], ExtFILE)>0 ){
/* If REPOSITORY arg is the root of a checkout,
** chdir to that checkout so that the current version
** gets highlighted in the timeline by default. */
const char * zArg = g.argv[2];
char * zCkoutDb = mprintf("%//.fslckout", zArg);
if(file_size(zCkoutDb, ExtFILE)<=0){
fossil_free(zCkoutDb);
zCkoutDb = mprintf("%//_FOSSIL_", zArg);
if(file_size(zCkoutDb, ExtFILE)<=0){
fossil_free(zCkoutDb);
zCkoutDb = 0;
}
}
if(zCkoutDb!=0){
fossil_free(zCkoutDb);
if(0!=file_chdir(zArg, 0)){
fossil_fatal("Cannot chdir to %s", zArg);
}
findServerArg = 99;
fCreate = 0;
g.argv[2] = 0;
--g.argc;
}
}
|
|
<
<
<
<
<
<
|
<
<
<
<
|
|
|
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
|
verify_all_options();
if( g.argc!=2 && g.argc!=3 ) usage("?REPOSITORY?");
if( isUiCmd && 3==g.argc && file_isdir(g.argv[2], ExtFILE)>0 ){
/* If REPOSITORY arg is the root of a checkout,
** chdir to that checkout so that the current version
** gets highlighted in the timeline by default. */
const char * zDir = g.argv[2];
if(dir_has_ckout_db(zDir)){
if(0!=file_chdir(zDir, 0)){
fossil_fatal("Cannot chdir to %s", zDir);
}
findServerArg = 99;
fCreate = 0;
g.argv[2] = 0;
--g.argc;
}
}
|