Fossil SCM

Patch from offline drh which sets the default cloned-repo user name to the one provided in the URL.

stephan 2013-10-17 16:08 trunk
Commit 64aa75260f48781cbbb6b59749c2d6f1b37ad772
2 files changed +1 +2 -1
--- src/clone.c
+++ src/clone.c
@@ -131,10 +131,11 @@
131131
}
132132
133133
zDefaultUser = find_option("admin-user","A",1);
134134
135135
url_parse(g.argv[2], URL_PROMPT_PW|URL_ASK_REMEMBER_PW);
136
+ if( zDefaultUser==0 && g.urlUser!=0 ) zDefaultUser = g.urlUser;
136137
if( g.urlIsFile ){
137138
file_copy(g.urlName, g.argv[3]);
138139
db_close(1);
139140
db_open_repository(g.argv[3]);
140141
db_record_repository_filename(g.argv[3]);
141142
--- 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
--- www/changes.wiki
+++ www/changes.wiki
@@ -1,10 +1,11 @@
11
<title>Change Log</title>
22
33
<h2>Changes For Version 1.28 (as yet unreleased)</h2>
44
* 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.
67
78
<h2>Changes For Version 1.27 (2013-09-11)</h2>
89
* Enhance the [/help?cmd=changes | fossil changes],
910
[/help?cmd=clean | fossil clean], [/help?cmd=extras | fossil extras],
1011
[/help?cmd=ls | fossil ls] and [/help?cmd=status | fossil status] commands
1112
--- 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

Keyboard Shortcuts

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