Fossil

Check-in [e56a4ec3]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a bug in the sub-repository detection logic. Ticket [b733bba0b7319ef2].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: e56a4ec3ad16e337cdc68b27d73b48dbb275001f
User & Date: drh 2011-05-06 13:13:32
Context
2011-05-06
14:36
Add --limit and --log options to the "annotate" command and corresponding query parameters to the web annotation interface. Part of the investigation of ticket [f0f9aff371f26b4] check-in: bd36723c user: drh tags: trunk
13:13
Fix a bug in the sub-repository detection logic. Ticket [b733bba0b7319ef2]. check-in: e56a4ec3 user: drh tags: trunk
2011-05-04
13:56
When listing closed branches, only show a branch if every leaf of that branch is closed. check-in: 74c86dd1 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/vfile.c.

299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
** In other words, check to see if directory pPath contains a file named
** "_FOSSIL_" or ".fos".  Return true or false.
*/
int vfile_top_of_checkout(const char *zPath){
  char *zFile;
  int fileFound = 0;

  zFile = mprintf("%s/_FOSSIL_");
  fileFound = file_size(zFile)>=1024;
  fossil_free(zFile);
  if( !fileFound ){
    zFile = mprintf("%s/.fos");
    fileFound = file_size(zFile)>=1024;
    fossil_free(zFile);
  }
  return fileFound;
}









|



|







299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
** In other words, check to see if directory pPath contains a file named
** "_FOSSIL_" or ".fos".  Return true or false.
*/
int vfile_top_of_checkout(const char *zPath){
  char *zFile;
  int fileFound = 0;

  zFile = mprintf("%s/_FOSSIL_", zPath);
  fileFound = file_size(zFile)>=1024;
  fossil_free(zFile);
  if( !fileFound ){
    zFile = mprintf("%s/.fos", zPath);
    fileFound = file_size(zFile)>=1024;
    fossil_free(zFile);
  }
  return fileFound;
}