Fossil SCM

Do not require a checkout db for (patch alias). That was a lingering side effect of aliases initially having been stored in the checkout db.

stephan 2026-11-22 17:52 UTC trunk
Commit 1e5877fbec42e81231f970607d2249ecea929fba037bf5dbfbc0624e6bd36ce1
1 file changed +1 -1
+1 -1
--- src/patch.c
+++ src/patch.c
@@ -1029,11 +1029,11 @@
10291029
}
10301030
zCmd = g.argv[2];
10311031
n = strlen(zCmd);
10321032
if( strncmp(zCmd, "alias", n)==0 ){
10331033
const char * zArg = g.argc>3 ? g.argv[3] : 0;
1034
- db_must_be_within_tree();
1034
+ db_find_and_open_repository(0, 0);
10351035
if( 0==zArg ){
10361036
goto usage_patch_alias;
10371037
}else if( 0==strcmp("ls",zArg) || 0==strcmp("list",zArg) ){
10381038
/* alias ls|list */
10391039
Stmt q;
10401040
--- src/patch.c
+++ src/patch.c
@@ -1029,11 +1029,11 @@
1029 }
1030 zCmd = g.argv[2];
1031 n = strlen(zCmd);
1032 if( strncmp(zCmd, "alias", n)==0 ){
1033 const char * zArg = g.argc>3 ? g.argv[3] : 0;
1034 db_must_be_within_tree();
1035 if( 0==zArg ){
1036 goto usage_patch_alias;
1037 }else if( 0==strcmp("ls",zArg) || 0==strcmp("list",zArg) ){
1038 /* alias ls|list */
1039 Stmt q;
1040
--- src/patch.c
+++ src/patch.c
@@ -1029,11 +1029,11 @@
1029 }
1030 zCmd = g.argv[2];
1031 n = strlen(zCmd);
1032 if( strncmp(zCmd, "alias", n)==0 ){
1033 const char * zArg = g.argc>3 ? g.argv[3] : 0;
1034 db_find_and_open_repository(0, 0);
1035 if( 0==zArg ){
1036 goto usage_patch_alias;
1037 }else if( 0==strcmp("ls",zArg) || 0==strcmp("list",zArg) ){
1038 /* alias ls|list */
1039 Stmt q;
1040

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button