Fossil

Diff
Login

Diff

Differences From Artifact [1150e5c23a]:

To Artifact [564e0cac54]:


566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
  }
  pManifest = manifest_get(rid, CFTYPE_MANIFEST);
  
  if( pManifest ){
    pFile = manifest_file_seek(pManifest, file);
    if( pFile ){
      rid = uuid_to_rid(pFile->zUuid, 0);
      if( pIsExe ) *pIsExe = manifest_file_mperm(pFile);
      if( pIsLink ){
	//TODO(dchest): figure out how to fit manifest_file_mperm.
	*pIsLink = pFile->zPerm && strstr(pFile->zPerm, "l") ? 1 : 0;
      }
      manifest_destroy(pManifest);
      return content_get(rid, content);
    }
    manifest_destroy(pManifest);
    if( errCode<=0 ){
      fossil_fatal("file %s does not exist in checkin: %s", file, revision);
    }







|
|
<
<
<







566
567
568
569
570
571
572
573
574



575
576
577
578
579
580
581
  }
  pManifest = manifest_get(rid, CFTYPE_MANIFEST);
  
  if( pManifest ){
    pFile = manifest_file_seek(pManifest, file);
    if( pFile ){
      rid = uuid_to_rid(pFile->zUuid, 0);
      if( pIsExe ) *pIsExe = ( manifest_file_mperm(pFile)==1 );
      if( pIsLink ) *pIsLink = ( manifest_file_mperm(pFile)==2 );



      manifest_destroy(pManifest);
      return content_get(rid, content);
    }
    manifest_destroy(pManifest);
    if( errCode<=0 ){
      fossil_fatal("file %s does not exist in checkin: %s", file, revision);
    }