Fossil SCM

Add the 'fossil all extra' command.

mistachkin 2013-10-07 22:37 UTC trunk
Commit f4bcc63fabba1c2bfb3072ad7c6521b8b246b7e2
1 file changed +15 -1
+15 -1
--- src/allrepo.c
+++ src/allrepo.c
@@ -58,11 +58,15 @@
5858
}
5959
}
6060
static void collect_argument_value(Blob *pExtra, const char *zArg){
6161
const char *zValue = find_option(zArg, 0, 1);
6262
if( zValue ){
63
- blob_appendf(pExtra, " --%s %s", zArg, zValue);
63
+ if( zValue[0] ){
64
+ blob_appendf(pExtra, " --%s %s", zArg, zValue);
65
+ }else{
66
+ blob_appendf(pExtra, " --%s \"\"", zArg);
67
+ }
6468
}
6569
}
6670
6771
6872
/*
@@ -132,10 +136,20 @@
132136
zCmd = g.argv[2];
133137
if( g.zLogin ) blob_appendf(&extra, " -U %s", g.zLogin);
134138
if( strncmp(zCmd, "list", n)==0 || strncmp(zCmd,"ls",n)==0 ){
135139
zCmd = "list";
136140
useCheckouts = find_option("ckout","c",0)!=0;
141
+ }else if( strncmp(zCmd, "extra", n)==0 ){
142
+ zCmd = "extra --chdir";
143
+ collect_argument(&extra, "abs-paths",0);
144
+ collect_argument_value(&extra, "case-sensitive");
145
+ collect_argument(&extra, "dotfiles",0);
146
+ collect_argument_value(&extra, "ignore");
147
+ collect_argument(&extra, "rel-paths",0);
148
+ useCheckouts = 1;
149
+ stopOnError = 0;
150
+ quiet = 1;
137151
}else if( strncmp(zCmd, "push", n)==0 ){
138152
zCmd = "push -autourl -R";
139153
collect_argument(&extra, "verbose","v");
140154
}else if( strncmp(zCmd, "pull", n)==0 ){
141155
zCmd = "pull -autourl -R";
142156
--- src/allrepo.c
+++ src/allrepo.c
@@ -58,11 +58,15 @@
58 }
59 }
60 static void collect_argument_value(Blob *pExtra, const char *zArg){
61 const char *zValue = find_option(zArg, 0, 1);
62 if( zValue ){
63 blob_appendf(pExtra, " --%s %s", zArg, zValue);
 
 
 
 
64 }
65 }
66
67
68 /*
@@ -132,10 +136,20 @@
132 zCmd = g.argv[2];
133 if( g.zLogin ) blob_appendf(&extra, " -U %s", g.zLogin);
134 if( strncmp(zCmd, "list", n)==0 || strncmp(zCmd,"ls",n)==0 ){
135 zCmd = "list";
136 useCheckouts = find_option("ckout","c",0)!=0;
 
 
 
 
 
 
 
 
 
 
137 }else if( strncmp(zCmd, "push", n)==0 ){
138 zCmd = "push -autourl -R";
139 collect_argument(&extra, "verbose","v");
140 }else if( strncmp(zCmd, "pull", n)==0 ){
141 zCmd = "pull -autourl -R";
142
--- src/allrepo.c
+++ src/allrepo.c
@@ -58,11 +58,15 @@
58 }
59 }
60 static void collect_argument_value(Blob *pExtra, const char *zArg){
61 const char *zValue = find_option(zArg, 0, 1);
62 if( zValue ){
63 if( zValue[0] ){
64 blob_appendf(pExtra, " --%s %s", zArg, zValue);
65 }else{
66 blob_appendf(pExtra, " --%s \"\"", zArg);
67 }
68 }
69 }
70
71
72 /*
@@ -132,10 +136,20 @@
136 zCmd = g.argv[2];
137 if( g.zLogin ) blob_appendf(&extra, " -U %s", g.zLogin);
138 if( strncmp(zCmd, "list", n)==0 || strncmp(zCmd,"ls",n)==0 ){
139 zCmd = "list";
140 useCheckouts = find_option("ckout","c",0)!=0;
141 }else if( strncmp(zCmd, "extra", n)==0 ){
142 zCmd = "extra --chdir";
143 collect_argument(&extra, "abs-paths",0);
144 collect_argument_value(&extra, "case-sensitive");
145 collect_argument(&extra, "dotfiles",0);
146 collect_argument_value(&extra, "ignore");
147 collect_argument(&extra, "rel-paths",0);
148 useCheckouts = 1;
149 stopOnError = 0;
150 quiet = 1;
151 }else if( strncmp(zCmd, "push", n)==0 ){
152 zCmd = "push -autourl -R";
153 collect_argument(&extra, "verbose","v");
154 }else if( strncmp(zCmd, "pull", n)==0 ){
155 zCmd = "pull -autourl -R";
156

Keyboard Shortcuts

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