Fossil

Check-in [85e1e3d4]
Login

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

Overview
Comment:Fix a bug in the Files browsing logic.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | experimental
Files: files | file ages | folders
SHA1: 85e1e3d4a13873b529d62475d21f69582629e8ae
User & Date: drh 2010-10-20 12:31:25
Context
2010-10-21
14:00
Better algorithm for deciding when to use a delta-manifest on a check-in. check-in: 7c244251 user: drh tags: experimental
2010-10-20
12:31
Fix a bug in the Files browsing logic. check-in: 85e1e3d4 user: drh tags: experimental
2010-10-19
23:50
Bug fix in the new delta-manifest generator logic. check-in: 068b1823 user: drh tags: experimental
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/browse.c.

126
127
128
129
130
131
132


133
134
135
136
137
138
139
  ** specific check-in does not exist, clear zCI.  zCI==0 will cause all
  ** files from all check-ins to be displayed.
  */
  if( zCI ){
    pM = manifest_get_by_name(zCI, &rid);
    if( pM ){
      zUuid = db_text(0, "SELECT uuid FROM blob WHERE rid=%d", rid);


    }
  }


  /* Compute the title of the page */  
  blob_zero(&dirname);
  if( zD ){







>
>







126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
  ** specific check-in does not exist, clear zCI.  zCI==0 will cause all
  ** files from all check-ins to be displayed.
  */
  if( zCI ){
    pM = manifest_get_by_name(zCI, &rid);
    if( pM ){
      zUuid = db_text(0, "SELECT uuid FROM blob WHERE rid=%d", rid);
    }else{
      zCI = 0;
    }
  }


  /* Compute the title of the page */  
  blob_zero(&dirname);
  if( zD ){

Changes to src/manifest.c.

836
837
838
839
840
841
842

843
844
845
846
847
848
849
  int rid;
  Manifest *p;

  rid = name_to_rid(zName);
  if( !is_a_version(rid) ){
    fossil_fatal("no such checkin: %s", zName);
  }

  p = manifest_get(rid, CFTYPE_MANIFEST);
  if( p==0 ){
    fossil_fatal("cannot parse manifest for checkin: %s", zName);
  }
  return p;
}








>







836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
  int rid;
  Manifest *p;

  rid = name_to_rid(zName);
  if( !is_a_version(rid) ){
    fossil_fatal("no such checkin: %s", zName);
  }
  if( pRid ) *pRid = rid;
  p = manifest_get(rid, CFTYPE_MANIFEST);
  if( p==0 ){
    fossil_fatal("cannot parse manifest for checkin: %s", zName);
  }
  return p;
}