Fossil SCM
-A option is not observed when cloning local files
Closed
6e81abf24ded94b…
· opened 15 years, 2 months ago
- Type
- Code_Defect
- Priority
- —
- Severity
- Important
- Resolution
- Open
- Subsystem
- —
- Created
- Feb. 3, 2011 10:38 p.m.
When cloning a local file, the -A option is not observed.
MJanssen@JUNO ~/Documents/Projects/fossil
$ fossil new test.fossil
project-id: 6fd8e84a448395e2128c376fa00b6528bf27310c
server-id: eb0f9e8df50588841650dae2ca601d6a671ab378
admin-user: MJanssen (initial password is "2948e5")
MJanssen@JUNO ~/Documents/Projects/fossil
$ fossil clone -A admin test.fossil test2.fossil
Repository cloned into test2.fossil
Rebuilding repository meta-data...
100.0% complete...
project-id: 6fd8e84a448395e2128c376fa00b6528bf27310c
server-id: d33bccda11a1a8694943685a9bcfda32c464e089
admin-user: MJanssen (password is "2948e5")
MJanssen@JUNO ~/Documents/Projects/fossil
$ fossil clone -A admin http://xxxx test3.fossil
Bytes Cards Artifacts Deltas
Sent: 53 1 0 0
Received: 2637198 854 271 155
Total network traffic: 230 bytes sent, 2636428 bytes received
Rebuilding repository meta-data...
100.0% complete...
project-id: 1cb7c1ee6fbcd866a6fd2bf389a18e972b5b4fd5
server-id: 8c590369091c4dd8dd91deab6fe2b77be76a7c49
admin-user: admin (password is "ff9717")
mjanssen added on 2011-02-03 22:47:27 UTC: It seems there is a missing db_initial_setup call in the local file branch. Can't currently test if the patch below works (no access to my development machine)
--- src\clone.c
+++ src\clone.c
@@ -60,10 +60,11 @@
if( g.urlIsFile ){
file_copy(g.urlName, g.argv[3]);
db_close(1);
db_open_repository(g.argv[3]);
db_record_repository_filename(g.argv[3]);
+ db_initial_setup(0, zDefaultUser, 0);
db_multi_exec(
"REPLACE INTO config(name,value)"
" VALUES('server-code', lower(hex(randomblob(20))));"
"REPLACE INTO config(name,value)"
" VALUES('last-sync-url', '%q');",
anonymous claiming to be mjanssen added on 2011-07-20 23:28:43 UTC: Fixed in [d86201dce9]