Fossil

Diff
Login

Differences From Artifact [8e4defa4dd]:

To Artifact [e96b878512]:


32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{NULL,NULL,0}
};

static char const * json_dir_path_extra(){
  static char const * zP = NULL;
  if( !zP ){
    zP = g.zExtra;
    while(zP && ('/'==*zP)){
      ++zP;
    }
  }
  return zP;
}

/*







|







32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{NULL,NULL,0}
};

static char const * json_dir_path_extra(){
  static char const * zP = NULL;
  if( !zP ){
    zP = g.zExtra;
    while(zP && *zP && ('/'==*zP)){
      ++zP;
    }
  }
  return zP;
}

/*
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
      json_set_err(FSL_JSON_E_UNRESOLVED_UUID,
                   "Checkin name [%s] is unresolved.",
                   zCI);
      return NULL;
    }
  }

  zDX = g.isHTTP ? json_dir_path_extra() : NULL;
  if(!zDX || !*zDX){
    zDX = json_find_option_cstr2("name",NULL,"n", g.json.dispatchDepth+1);
  }
  zD = zDX ? fossil_strdup(zDX) : NULL;
  nD = zD ? strlen(zD)+1 : 0;
  while( nD>1 && zD[nD-2]=='/' ){ zD[(--nD)-1] = 0; }

  sqlite3_create_function(g.db, "pathelement", 2, SQLITE_UTF8, 0,
                          pathelementFunc, 0, 0);

  /* Compute the temporary table "localfiles" containing the names







|
|
|

|







83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
      json_set_err(FSL_JSON_E_UNRESOLVED_UUID,
                   "Checkin name [%s] is unresolved.",
                   zCI);
      return NULL;
    }
  }

  zDX = json_find_option_cstr("name",NULL,"n");
  if((!zDX || !*zDX) && !g.isHTTP){
    zDX = json_command_arg(g.json.dispatchDepth+1);
  }
  zD = (zDX && *zDX) ? fossil_strdup(zDX) : NULL;
  nD = zD ? strlen(zD)+1 : 0;
  while( nD>1 && zD[nD-2]=='/' ){ zD[(--nD)-1] = 0; }

  sqlite3_create_function(g.db, "pathelement", 2, SQLITE_UTF8, 0,
                          pathelementFunc, 0, 0);

  /* Compute the temporary table "localfiles" containing the names