eb5c9cd277c2bcd521aa461d06e9d8a32509c1d3
braney
  Thu Oct 9 12:17:30 2025 -0700
make it possible to use a cart variable in addition to an hg.conf
variable to turn on quickLift

diff --git src/hg/lib/cart.c src/hg/lib/cart.c
index a989b3ef1ad..0688267610c 100644
--- src/hg/lib/cart.c
+++ src/hg/lib/cart.c
@@ -4121,15 +4121,25 @@
 freeMem(tdbDefault);
 } 
 
 unsigned cartGetVersion(struct cart *cart)
 /* Get the current version of the cart, which is stored in the variable "cartVersion" */
 {
 unsigned ret = cartUsualInt(cart, "cartVersion", 0);
 return ret;
 }
 
 void cartSetVersion(struct cart *cart, unsigned version)
 /* Set the current version of the cart, which is stored in the variable "cartVersion" */
 {
 cartSetInt(cart, "cartVersion", version);
 }
+
+char *cartOrCfgOption(struct cart *cart, char *name)
+/* Return the option with the given name. First check cart then hg.conf.  Return NULL if * it doesn't exist. */
+{
+char *str = NULL;
+if ((str = cartOptionalString(cart, name)) == NULL)
+    return str = cfgOption(name);
+
+return str;
+}