ef2869665d8c2d4fe59743faabe050de406a5278 braney Wed Apr 13 18:00:32 2011 -0700 add support for private hubs. Needs more work and doc, the biggest problem I know of is that you can't switch off the private hubs, but it should give folks an idea of how I'm thinking of supporting them. diff --git src/hg/lib/hdb.c src/hg/lib/hdb.c index b05b473..fd6b25a 100644 --- src/hg/lib/hdb.c +++ src/hg/lib/hdb.c @@ -3708,36 +3708,39 @@ return trackTdb; } struct trackDb *tdbForTrack(char *db, char *track,struct trackDb **tdbList) /* Load trackDb object for a track. If track is composite, its subtracks * will also be loaded and inheritance will be handled; if track is a * subtrack then inheritance will be handled. (Unless a subtrack has * "noInherit on"...) This will die if the current database does not have * a trackDb, but will return NULL if track is not found. * MAY pass in prepopulated trackDb list, or may receive the trackDb list as an inout. */ { /* Get track list .*/ struct trackDb *theTdbs = NULL; if (tdbList == NULL || *tdbList == NULL) { +#ifdef NOTNOW /* this is handled by the routines that call us, removed + * from here because we don't have a cart down here */ if (isHubTrack(track)) { struct hash *hash = hashNew(0); theTdbs = hubConnectAddHubForTrackAndFindTdb(db, track, tdbList, hash); } else +#endif { theTdbs = hTrackDb(db); if (tdbList != NULL) *tdbList = theTdbs; } } else theTdbs = *tdbList; return rFindTrack(0, theTdbs, track); } struct trackDb *hTrackDbForTrackAndAncestors(char *db, char *track) /* Load trackDb object for a track. If need be grab its ancestors too. * This does not load children. hTrackDbForTrack will handle children, and * is actually faster if being called on lots of tracks. This function