e877a7961cdfb1b5b9540a0f51f08d3b715f0717
tdreszer
  Wed Mar 9 14:06:54 2011 -0800
For download file lookup, beta should look on hgdownloads-test but in beta/ subdirectory.
diff --git src/hg/lib/hdb.c src/hg/lib/hdb.c
index a892adb..e3274f0 100644
--- src/hg/lib/hdb.c
+++ src/hg/lib/hdb.c
@@ -3048,30 +3048,37 @@
 
 if (httpHost == NULL)
     return FALSE;
 
 return startsWith(prefix, httpHost);
 }
 
 boolean hIsPrivateHost()
 /* Return TRUE if this is running on private (development) web-server. 
  * This was originally genome-test as well as hgwdev, however genome-test
  * may be repurposed to direct users to the preview site instead of development site. */
 {
 return hHostHasPrefix("hgwdev");
 }
 
+boolean hIsBetaHost()
+/* Return TRUE if this is running on beta (QA) web-server.
+ * Use sparingly as behavior on beta should be as close to RR as possible. */
+{
+return hHostHasPrefix("hgwbeta");
+}
+
 boolean hIsPreviewHost()
 /* Return TRUE if this is running on preview web-server.  The preview
  * server is a mirror of the development server provided for public
  * early access. */
 {
 if (cfgOption("test.preview"))
     return TRUE;
 return hHostHasPrefix("genome-preview");
 }
 
 char *hBrowserName()
 /* Return browser name based on host name */
 {
 return (hIsPreviewHost() ? "Preview Genome Browser" : 
         (hIsPrivateHost() ? "TEST Genome Browser" : "Genome Browser"));