Fossil SCM

Enable processing of versioned manifest setting when creating zips and tarballs outside of an open checkout directory

andygoth 2017-08-05 04:17 trunk
Commit da23bec78094a90b9b7653599aaf5c081327221d7d5d3a88eda0ebfa158d00e3
+2 -1
--- src/tar.c
+++ src/tar.c
@@ -616,10 +616,11 @@
616616
verify_all_options();
617617
618618
if( g.argc!=4 ){
619619
usage("VERSION OUTPUTFILE");
620620
}
621
+ g.zOpenRevision = g.argv[2];
621622
rid = name_to_typed_rid(g.argv[2], "ci");
622623
if( rid==0 ){
623624
fossil_fatal("Check-in not found: %s", g.argv[2]);
624625
return;
625626
}
@@ -689,11 +690,11 @@
689690
zName = mprintf("%s", PD("name",""));
690691
nName = strlen(zName);
691692
z = P("r");
692693
if( z==0 ) z = P("uuid");
693694
if( z==0 ) z = "trunk";
694
- zRid = fossil_strdup(z);
695
+ g.zOpenRevision = zRid = fossil_strdup(z);
695696
nRid = strlen(zRid);
696697
zInclude = P("in");
697698
if( zInclude ) pInclude = glob_create(zInclude);
698699
zExclude = P("ex");
699700
if( zExclude ) pExclude = glob_create(zExclude);
700701
--- src/tar.c
+++ src/tar.c
@@ -616,10 +616,11 @@
616 verify_all_options();
617
618 if( g.argc!=4 ){
619 usage("VERSION OUTPUTFILE");
620 }
 
621 rid = name_to_typed_rid(g.argv[2], "ci");
622 if( rid==0 ){
623 fossil_fatal("Check-in not found: %s", g.argv[2]);
624 return;
625 }
@@ -689,11 +690,11 @@
689 zName = mprintf("%s", PD("name",""));
690 nName = strlen(zName);
691 z = P("r");
692 if( z==0 ) z = P("uuid");
693 if( z==0 ) z = "trunk";
694 zRid = fossil_strdup(z);
695 nRid = strlen(zRid);
696 zInclude = P("in");
697 if( zInclude ) pInclude = glob_create(zInclude);
698 zExclude = P("ex");
699 if( zExclude ) pExclude = glob_create(zExclude);
700
--- src/tar.c
+++ src/tar.c
@@ -616,10 +616,11 @@
616 verify_all_options();
617
618 if( g.argc!=4 ){
619 usage("VERSION OUTPUTFILE");
620 }
621 g.zOpenRevision = g.argv[2];
622 rid = name_to_typed_rid(g.argv[2], "ci");
623 if( rid==0 ){
624 fossil_fatal("Check-in not found: %s", g.argv[2]);
625 return;
626 }
@@ -689,11 +690,11 @@
690 zName = mprintf("%s", PD("name",""));
691 nName = strlen(zName);
692 z = P("r");
693 if( z==0 ) z = P("uuid");
694 if( z==0 ) z = "trunk";
695 g.zOpenRevision = zRid = fossil_strdup(z);
696 nRid = strlen(zRid);
697 zInclude = P("in");
698 if( zInclude ) pInclude = glob_create(zInclude);
699 zExclude = P("ex");
700 if( zExclude ) pExclude = glob_create(zExclude);
701
+2 -1
--- src/zip.c
+++ src/zip.c
@@ -466,10 +466,11 @@
466466
verify_all_options();
467467
468468
if( g.argc!=4 ){
469469
usage("VERSION OUTPUTFILE");
470470
}
471
+ g.zOpenRevision = g.argv[2];
471472
rid = name_to_typed_rid(g.argv[2], "ci");
472473
if( rid==0 ){
473474
fossil_fatal("Check-in not found: %s", g.argv[2]);
474475
return;
475476
}
@@ -539,11 +540,11 @@
539540
zName = mprintf("%s", PD("name",""));
540541
nName = strlen(zName);
541542
z = P("r");
542543
if( z==0 ) z = P("uuid");
543544
if( z==0 ) z = "trunk";
544
- zRid = fossil_strdup(z);
545
+ g.zOpenRevision = zRid = fossil_strdup(z);
545546
nRid = strlen(zRid);
546547
zInclude = P("in");
547548
if( zInclude ) pInclude = glob_create(zInclude);
548549
zExclude = P("ex");
549550
if( zExclude ) pExclude = glob_create(zExclude);
550551
--- src/zip.c
+++ src/zip.c
@@ -466,10 +466,11 @@
466 verify_all_options();
467
468 if( g.argc!=4 ){
469 usage("VERSION OUTPUTFILE");
470 }
 
471 rid = name_to_typed_rid(g.argv[2], "ci");
472 if( rid==0 ){
473 fossil_fatal("Check-in not found: %s", g.argv[2]);
474 return;
475 }
@@ -539,11 +540,11 @@
539 zName = mprintf("%s", PD("name",""));
540 nName = strlen(zName);
541 z = P("r");
542 if( z==0 ) z = P("uuid");
543 if( z==0 ) z = "trunk";
544 zRid = fossil_strdup(z);
545 nRid = strlen(zRid);
546 zInclude = P("in");
547 if( zInclude ) pInclude = glob_create(zInclude);
548 zExclude = P("ex");
549 if( zExclude ) pExclude = glob_create(zExclude);
550
--- src/zip.c
+++ src/zip.c
@@ -466,10 +466,11 @@
466 verify_all_options();
467
468 if( g.argc!=4 ){
469 usage("VERSION OUTPUTFILE");
470 }
471 g.zOpenRevision = g.argv[2];
472 rid = name_to_typed_rid(g.argv[2], "ci");
473 if( rid==0 ){
474 fossil_fatal("Check-in not found: %s", g.argv[2]);
475 return;
476 }
@@ -539,11 +540,11 @@
540 zName = mprintf("%s", PD("name",""));
541 nName = strlen(zName);
542 z = P("r");
543 if( z==0 ) z = P("uuid");
544 if( z==0 ) z = "trunk";
545 g.zOpenRevision = zRid = fossil_strdup(z);
546 nRid = strlen(zRid);
547 zInclude = P("in");
548 if( zInclude ) pInclude = glob_create(zInclude);
549 zExclude = P("ex");
550 if( zExclude ) pExclude = glob_create(zExclude);
551
--- www/changes.wiki
+++ www/changes.wiki
@@ -2,10 +2,14 @@
22
33
<a name='v2_4'></a>
44
<h2>Changes for Version 2.4 (TBD)</h2>
55
66
* Correct the [/help?cmd=/doc|/doc] page to support read-only repositories.
7
+ * Correct [/help?cmd=/zip|/zip], [/help?cmd=/tarball|/tarball],
8
+ [/help?cmd=zip|zip], and [/help?cmd=tarball|tarball] pages and commands to
9
+ honor the versioned manifest setting when outside of an open checkout
10
+ directory.
711
812
<a name='v2_3'></a>
913
<h2>Changes for Version 2.3 (2017-07-21)</h2>
1014
1115
* Update the built-in SQLite to version 3.20.0 (beta).
1216
--- www/changes.wiki
+++ www/changes.wiki
@@ -2,10 +2,14 @@
2
3 <a name='v2_4'></a>
4 <h2>Changes for Version 2.4 (TBD)</h2>
5
6 * Correct the [/help?cmd=/doc|/doc] page to support read-only repositories.
 
 
 
 
7
8 <a name='v2_3'></a>
9 <h2>Changes for Version 2.3 (2017-07-21)</h2>
10
11 * Update the built-in SQLite to version 3.20.0 (beta).
12
--- www/changes.wiki
+++ www/changes.wiki
@@ -2,10 +2,14 @@
2
3 <a name='v2_4'></a>
4 <h2>Changes for Version 2.4 (TBD)</h2>
5
6 * Correct the [/help?cmd=/doc|/doc] page to support read-only repositories.
7 * Correct [/help?cmd=/zip|/zip], [/help?cmd=/tarball|/tarball],
8 [/help?cmd=zip|zip], and [/help?cmd=tarball|tarball] pages and commands to
9 honor the versioned manifest setting when outside of an open checkout
10 directory.
11
12 <a name='v2_3'></a>
13 <h2>Changes for Version 2.3 (2017-07-21)</h2>
14
15 * Update the built-in SQLite to version 3.20.0 (beta).
16

Keyboard Shortcuts

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