Fossil SCM

Set the main-branch config option to the trunk name we're using.

roy.marples 2017-02-10 22:07 UTC roy-export
Commit 9501d941d5c16462f045858d842630622acfe27d
1 file changed +4 -1
+4 -1
--- src/import.c
+++ src/import.c
@@ -1697,11 +1697,14 @@
16971697
}
16981698
db_open_repository(g.argv[2]);
16991699
db_open_config(0, 0);
17001700
17011701
db_begin_transaction();
1702
- if( !incrFlag ) db_initial_setup(0, 0, 0);
1702
+ if( !incrFlag ){
1703
+ db_initial_setup(0, 0, 0);
1704
+ db_set("main-branch", gimport.zTrunkName, 0);
1705
+ }
17031706
17041707
if( svnFlag ){
17051708
db_multi_exec(
17061709
"CREATE TEMP TABLE xrevisions("
17071710
" trev INTEGER, tbranch INT, trid INT, tparent INT DEFAULT 0,"
17081711
--- src/import.c
+++ src/import.c
@@ -1697,11 +1697,14 @@
1697 }
1698 db_open_repository(g.argv[2]);
1699 db_open_config(0, 0);
1700
1701 db_begin_transaction();
1702 if( !incrFlag ) db_initial_setup(0, 0, 0);
 
 
 
1703
1704 if( svnFlag ){
1705 db_multi_exec(
1706 "CREATE TEMP TABLE xrevisions("
1707 " trev INTEGER, tbranch INT, trid INT, tparent INT DEFAULT 0,"
1708
--- src/import.c
+++ src/import.c
@@ -1697,11 +1697,14 @@
1697 }
1698 db_open_repository(g.argv[2]);
1699 db_open_config(0, 0);
1700
1701 db_begin_transaction();
1702 if( !incrFlag ){
1703 db_initial_setup(0, 0, 0);
1704 db_set("main-branch", gimport.zTrunkName, 0);
1705 }
1706
1707 if( svnFlag ){
1708 db_multi_exec(
1709 "CREATE TEMP TABLE xrevisions("
1710 " trev INTEGER, tbranch INT, trid INT, tparent INT DEFAULT 0,"
1711

Keyboard Shortcuts

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