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.
Commit
1e5877fbec42e81231f970607d2249ecea929fba037bf5dbfbc0624e6bd36ce1
Parent
e38cf10d1267ab8…
1 file changed
+1
-1
+1
-1
| --- src/patch.c | ||
| +++ src/patch.c | ||
| @@ -1029,11 +1029,11 @@ | ||
| 1029 | 1029 | } |
| 1030 | 1030 | zCmd = g.argv[2]; |
| 1031 | 1031 | n = strlen(zCmd); |
| 1032 | 1032 | if( strncmp(zCmd, "alias", n)==0 ){ |
| 1033 | 1033 | const char * zArg = g.argc>3 ? g.argv[3] : 0; |
| 1034 | - db_must_be_within_tree(); | |
| 1034 | + db_find_and_open_repository(0, 0); | |
| 1035 | 1035 | if( 0==zArg ){ |
| 1036 | 1036 | goto usage_patch_alias; |
| 1037 | 1037 | }else if( 0==strcmp("ls",zArg) || 0==strcmp("list",zArg) ){ |
| 1038 | 1038 | /* alias ls|list */ |
| 1039 | 1039 | Stmt q; |
| 1040 | 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_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 |