Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Internal API additions in symbolic_name_to_rid(). |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
20391d1e58b6b7c8d2aa23ec27a9f090 |
| User & Date: | stephan 2021-02-15 15:50:51.326 |
Context
|
2021-02-16
| ||
| 18:53 | darkmode skin: cleaned up centering of hamburger menu. check-in: daf8ab95cd user: stephan tags: trunk | |
|
2021-02-15
| ||
| 16:27 | Experimentally added branched-from info to the leaves output, as discussed in [forum:/forumpost/5e52d31d2e]. check-in: 0b41f332f4 user: stephan tags: leaves-command-branched-from | |
| 15:50 | Internal API additions in symbolic_name_to_rid(). check-in: 20391d1e58 user: stephan tags: trunk | |
|
2021-02-14
| ||
| 02:16 | Update the built-in "pikchr" to a version that supports the "this" objectname. check-in: f260b75fb9 user: drh tags: trunk | |
Changes
Changes to src/name.c.
| ︙ | ︙ | |||
240 241 242 243 244 245 246 247 248 249 250 251 252 253 | ** * "tip" ** ** The following additional forms are available in local checkouts: ** ** * "current" ** * "prev" or "previous" ** * "next" ** ** Return the RID of the matching artifact. Or return 0 if the name does not ** match any known object. Or return -1 if the name is ambiguous. ** ** The zType parameter specifies the type of artifact: ci, t, w, e, g, f. ** If zType is NULL or "" or "*" then any type of artifact will serve. ** If zType is "br" then find the first check-in of the named branch | > > > > > > > > > > | 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 | ** * "tip" ** ** The following additional forms are available in local checkouts: ** ** * "current" ** * "prev" or "previous" ** * "next" ** ** The following modifier prefixes may be applied to the above forms: ** ** * "root:BR" = The origin of the branch named BR. ** * "merge-in:BR" = The most recent merge-in for the branch named BR. ** ** In those forms, BR may be any symbolic form but is assumed to be a ** checkin. Thus root:2021-02-01 would resolve to a checkin, possibly ** in a branch and possibly in the trunk, but never a wiki edit or ** forum post. ** ** Return the RID of the matching artifact. Or return 0 if the name does not ** match any known object. Or return -1 if the name is ambiguous. ** ** The zType parameter specifies the type of artifact: ci, t, w, e, g, f. ** If zType is NULL or "" or "*" then any type of artifact will serve. ** If zType is "br" then find the first check-in of the named branch |
| ︙ | ︙ | |||
351 352 353 354 355 356 357 |
}
/* root:BR -> The origin of the branch named BR */
if( strncmp(zTag, "root:", 5)==0 ){
rid = symbolic_name_to_rid(zTag+5, zType);
return start_of_branch(rid, 0);
}
| | | 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 |
}
/* root:BR -> The origin of the branch named BR */
if( strncmp(zTag, "root:", 5)==0 ){
rid = symbolic_name_to_rid(zTag+5, zType);
return start_of_branch(rid, 0);
}
/* merge-in:BR -> Most recent merge-in for the branch name BR */
if( strncmp(zTag, "merge-in:", 9)==0 ){
rid = symbolic_name_to_rid(zTag+9, zType);
return start_of_branch(rid, 2);
}
/* symbolic-name ":" date-time */
nTag = strlen(zTag);
|
| ︙ | ︙ |