Fossil SCM
Patch from offline drh which sets the default cloned-repo user name to the one provided in the URL.
Commit
64aa75260f48781cbbb6b59749c2d6f1b37ad772
Parent
8f4e273b0dea19d…
2 files changed
+1
+2
-1
+1
| --- src/clone.c | ||
| +++ src/clone.c | ||
| @@ -131,10 +131,11 @@ | ||
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | zDefaultUser = find_option("admin-user","A",1); |
| 134 | 134 | |
| 135 | 135 | url_parse(g.argv[2], URL_PROMPT_PW|URL_ASK_REMEMBER_PW); |
| 136 | + if( zDefaultUser==0 && g.urlUser!=0 ) zDefaultUser = g.urlUser; | |
| 136 | 137 | if( g.urlIsFile ){ |
| 137 | 138 | file_copy(g.urlName, g.argv[3]); |
| 138 | 139 | db_close(1); |
| 139 | 140 | db_open_repository(g.argv[3]); |
| 140 | 141 | db_record_repository_filename(g.argv[3]); |
| 141 | 142 |
| --- src/clone.c | |
| +++ src/clone.c | |
| @@ -131,10 +131,11 @@ | |
| 131 | } |
| 132 | |
| 133 | zDefaultUser = find_option("admin-user","A",1); |
| 134 | |
| 135 | url_parse(g.argv[2], URL_PROMPT_PW|URL_ASK_REMEMBER_PW); |
| 136 | if( g.urlIsFile ){ |
| 137 | file_copy(g.urlName, g.argv[3]); |
| 138 | db_close(1); |
| 139 | db_open_repository(g.argv[3]); |
| 140 | db_record_repository_filename(g.argv[3]); |
| 141 |
| --- src/clone.c | |
| +++ src/clone.c | |
| @@ -131,10 +131,11 @@ | |
| 131 | } |
| 132 | |
| 133 | zDefaultUser = find_option("admin-user","A",1); |
| 134 | |
| 135 | url_parse(g.argv[2], URL_PROMPT_PW|URL_ASK_REMEMBER_PW); |
| 136 | if( zDefaultUser==0 && g.urlUser!=0 ) zDefaultUser = g.urlUser; |
| 137 | if( g.urlIsFile ){ |
| 138 | file_copy(g.urlName, g.argv[3]); |
| 139 | db_close(1); |
| 140 | db_open_repository(g.argv[3]); |
| 141 | db_record_repository_filename(g.argv[3]); |
| 142 |
+2
-1
| --- www/changes.wiki | ||
| +++ www/changes.wiki | ||
| @@ -1,10 +1,11 @@ | ||
| 1 | 1 | <title>Change Log</title> |
| 2 | 2 | |
| 3 | 3 | <h2>Changes For Version 1.28 (as yet unreleased)</h2> |
| 4 | 4 | * Enhance [/help?cmd=/reports | /reports] to support event type filtering. |
| 5 | - | |
| 5 | + * When cloning a repository, the user name passed via the URL (if any) | |
| 6 | + is now uses as the default local admin user's name. | |
| 6 | 7 | |
| 7 | 8 | <h2>Changes For Version 1.27 (2013-09-11)</h2> |
| 8 | 9 | * Enhance the [/help?cmd=changes | fossil changes], |
| 9 | 10 | [/help?cmd=clean | fossil clean], [/help?cmd=extras | fossil extras], |
| 10 | 11 | [/help?cmd=ls | fossil ls] and [/help?cmd=status | fossil status] commands |
| 11 | 12 |
| --- www/changes.wiki | |
| +++ www/changes.wiki | |
| @@ -1,10 +1,11 @@ | |
| 1 | <title>Change Log</title> |
| 2 | |
| 3 | <h2>Changes For Version 1.28 (as yet unreleased)</h2> |
| 4 | * Enhance [/help?cmd=/reports | /reports] to support event type filtering. |
| 5 | |
| 6 | |
| 7 | <h2>Changes For Version 1.27 (2013-09-11)</h2> |
| 8 | * Enhance the [/help?cmd=changes | fossil changes], |
| 9 | [/help?cmd=clean | fossil clean], [/help?cmd=extras | fossil extras], |
| 10 | [/help?cmd=ls | fossil ls] and [/help?cmd=status | fossil status] commands |
| 11 |
| --- www/changes.wiki | |
| +++ www/changes.wiki | |
| @@ -1,10 +1,11 @@ | |
| 1 | <title>Change Log</title> |
| 2 | |
| 3 | <h2>Changes For Version 1.28 (as yet unreleased)</h2> |
| 4 | * Enhance [/help?cmd=/reports | /reports] to support event type filtering. |
| 5 | * When cloning a repository, the user name passed via the URL (if any) |
| 6 | is now uses as the default local admin user's name. |
| 7 | |
| 8 | <h2>Changes For Version 1.27 (2013-09-11)</h2> |
| 9 | * Enhance the [/help?cmd=changes | fossil changes], |
| 10 | [/help?cmd=clean | fossil clean], [/help?cmd=extras | fossil extras], |
| 11 | [/help?cmd=ls | fossil ls] and [/help?cmd=status | fossil status] commands |
| 12 |