6ea7c4f34085dfc0f62ecf0dd5acc6adef2234d4 chmalee Thu Mar 26 14:40:42 2020 -0700 Adding a comment to explain what the hgHubConnectDeveloperMode function does after code review, refs #25221 diff --git src/hg/hgHubConnect/hgHubConnect.c src/hg/hgHubConnect/hgHubConnect.c index 4a6aaf0..e588f73 100644 --- src/hg/hgHubConnect/hgHubConnect.c +++ src/hg/hgHubConnect/hgHubConnect.c @@ -392,30 +392,33 @@ if (f == NULL) errAbort("popen: error running command: \"%s\"", cmd->string); char buf[1024]; while (fgets(buf, sizeof(buf), f)) { jsInlineF("%s", buf); } if (pclose(f) == -1) errAbort("pclose: error for command \"%s\"", cmd->string); // the 'false' below prevents a few hub-search specific jstree configuration options jsInline("hubSearchTree.init(false);"); dyStringFree(&cmd); } void hgHubConnectDeveloperMode() +/* Put up the controls for the "Hub Development" Tab, which includes a button to run the + * hubCheck utility on a hub and load a hub with the udcTimeout and measureTiming + * variables turned on */ { // put out the top of our page char *hubUrl = cartOptionalString(cart, "validateHubUrl"); boolean doHubValidate = cartVarExists(cart, hgHubDoHubCheck); // the outer div for all the elements in the tab printf("\n<div id=\"hubDeveloper\" class=\"hubList\">\n"); // the row to enter in the url and the button and settings to validate/load printf("<div class=\"addHubBar roundCorners\" id=\"validateHubUrlRow\">\n"); printf("<label for=\"validateHubUrl\"><b>URL:</b></label>\n"); if (hubUrl != NULL) { printf("<input name=\"validateText\" id=\"validateHubUrl\" class=\"hubField\" " "type=\"text\" size=\"65\" value=\"%s\"> \n", hubUrl);