Fossil SCM

merge from trunk

wolfgang 2010-11-02 18:23 StvPrivateHook2 merge
Commit cb75de51b551e56fc95c8ee198625e6de976d575
+15 -1
--- src/allrepo.c
+++ src/allrepo.c
@@ -60,10 +60,13 @@
6060
** On Win32 systems, the file is named "_fossil" and is located in
6161
** %LOCALAPPDATA%, %APPDATA% or %HOMEPATH%.
6262
**
6363
** Available operations are:
6464
**
65
+** ignore Arguments are repositories that should be ignored
66
+** by subsequent list, pull, push, rebuild, and sync.
67
+**
6568
** list | ls Display the location of all repositories
6669
**
6770
** pull Run a "pull" operation on all repositories
6871
**
6972
** push Run a "push" on all repositories
@@ -73,10 +76,12 @@
7376
** sync Run a "sync" on all repositories
7477
**
7578
** Respositories are automatically added to the set of known repositories
7679
** when one of the following commands against the repository:
7780
** <a>clone</a>, <a>info</a>, <a>pull</a>, <a>push</a>, or <a>sync</a>
81
+** Even previously ignored repositories are added back
82
+** to the list of repositories by these commands.
7883
*/
7984
void all_cmd(void){
8085
int n;
8186
Stmt q;
8287
const char *zCmd;
@@ -99,13 +104,22 @@
99104
zCmd = "pull -autourl -R";
100105
}else if( strncmp(zCmd, "rebuild", n)==0 ){
101106
zCmd = "rebuild";
102107
}else if( strncmp(zCmd, "sync", n)==0 ){
103108
zCmd = "sync -autourl -R";
109
+ }else if( strncmp(zCmd, "ignore", n)==0 ){
110
+ int j;
111
+ db_begin_transaction();
112
+ for(j=3; j<g.argc; j++){
113
+ db_multi_exec("DELETE FROM global_config WHERE name GLOB 'repo:%q'",
114
+ g.argv[j]);
115
+ }
116
+ db_end_transaction(0);
117
+ return;
104118
}else{
105119
fossil_fatal("\"all\" subcommand should be one of: "
106
- "list ls push pull rebuild sync");
120
+ "ignore list ls push pull rebuild sync");
107121
}
108122
zFossil = quoteFilename(g.argv[0]);
109123
nMissing = 0;
110124
db_prepare(&q,
111125
"SELECT DISTINCT substr(name, 6) COLLATE nocase"
112126
--- src/allrepo.c
+++ src/allrepo.c
@@ -60,10 +60,13 @@
60 ** On Win32 systems, the file is named "_fossil" and is located in
61 ** %LOCALAPPDATA%, %APPDATA% or %HOMEPATH%.
62 **
63 ** Available operations are:
64 **
 
 
 
65 ** list | ls Display the location of all repositories
66 **
67 ** pull Run a "pull" operation on all repositories
68 **
69 ** push Run a "push" on all repositories
@@ -73,10 +76,12 @@
73 ** sync Run a "sync" on all repositories
74 **
75 ** Respositories are automatically added to the set of known repositories
76 ** when one of the following commands against the repository:
77 ** <a>clone</a>, <a>info</a>, <a>pull</a>, <a>push</a>, or <a>sync</a>
 
 
78 */
79 void all_cmd(void){
80 int n;
81 Stmt q;
82 const char *zCmd;
@@ -99,13 +104,22 @@
99 zCmd = "pull -autourl -R";
100 }else if( strncmp(zCmd, "rebuild", n)==0 ){
101 zCmd = "rebuild";
102 }else if( strncmp(zCmd, "sync", n)==0 ){
103 zCmd = "sync -autourl -R";
 
 
 
 
 
 
 
 
 
104 }else{
105 fossil_fatal("\"all\" subcommand should be one of: "
106 "list ls push pull rebuild sync");
107 }
108 zFossil = quoteFilename(g.argv[0]);
109 nMissing = 0;
110 db_prepare(&q,
111 "SELECT DISTINCT substr(name, 6) COLLATE nocase"
112
--- src/allrepo.c
+++ src/allrepo.c
@@ -60,10 +60,13 @@
60 ** On Win32 systems, the file is named "_fossil" and is located in
61 ** %LOCALAPPDATA%, %APPDATA% or %HOMEPATH%.
62 **
63 ** Available operations are:
64 **
65 ** ignore Arguments are repositories that should be ignored
66 ** by subsequent list, pull, push, rebuild, and sync.
67 **
68 ** list | ls Display the location of all repositories
69 **
70 ** pull Run a "pull" operation on all repositories
71 **
72 ** push Run a "push" on all repositories
@@ -73,10 +76,12 @@
76 ** sync Run a "sync" on all repositories
77 **
78 ** Respositories are automatically added to the set of known repositories
79 ** when one of the following commands against the repository:
80 ** <a>clone</a>, <a>info</a>, <a>pull</a>, <a>push</a>, or <a>sync</a>
81 ** Even previously ignored repositories are added back
82 ** to the list of repositories by these commands.
83 */
84 void all_cmd(void){
85 int n;
86 Stmt q;
87 const char *zCmd;
@@ -99,13 +104,22 @@
104 zCmd = "pull -autourl -R";
105 }else if( strncmp(zCmd, "rebuild", n)==0 ){
106 zCmd = "rebuild";
107 }else if( strncmp(zCmd, "sync", n)==0 ){
108 zCmd = "sync -autourl -R";
109 }else if( strncmp(zCmd, "ignore", n)==0 ){
110 int j;
111 db_begin_transaction();
112 for(j=3; j<g.argc; j++){
113 db_multi_exec("DELETE FROM global_config WHERE name GLOB 'repo:%q'",
114 g.argv[j]);
115 }
116 db_end_transaction(0);
117 return;
118 }else{
119 fossil_fatal("\"all\" subcommand should be one of: "
120 "ignore list ls push pull rebuild sync");
121 }
122 zFossil = quoteFilename(g.argv[0]);
123 nMissing = 0;
124 db_prepare(&q,
125 "SELECT DISTINCT substr(name, 6) COLLATE nocase"
126
+15 -1
--- src/allrepo.c
+++ src/allrepo.c
@@ -60,10 +60,13 @@
6060
** On Win32 systems, the file is named "_fossil" and is located in
6161
** %LOCALAPPDATA%, %APPDATA% or %HOMEPATH%.
6262
**
6363
** Available operations are:
6464
**
65
+** ignore Arguments are repositories that should be ignored
66
+** by subsequent list, pull, push, rebuild, and sync.
67
+**
6568
** list | ls Display the location of all repositories
6669
**
6770
** pull Run a "pull" operation on all repositories
6871
**
6972
** push Run a "push" on all repositories
@@ -73,10 +76,12 @@
7376
** sync Run a "sync" on all repositories
7477
**
7578
** Respositories are automatically added to the set of known repositories
7679
** when one of the following commands against the repository:
7780
** <a>clone</a>, <a>info</a>, <a>pull</a>, <a>push</a>, or <a>sync</a>
81
+** Even previously ignored repositories are added back
82
+** to the list of repositories by these commands.
7883
*/
7984
void all_cmd(void){
8085
int n;
8186
Stmt q;
8287
const char *zCmd;
@@ -99,13 +104,22 @@
99104
zCmd = "pull -autourl -R";
100105
}else if( strncmp(zCmd, "rebuild", n)==0 ){
101106
zCmd = "rebuild";
102107
}else if( strncmp(zCmd, "sync", n)==0 ){
103108
zCmd = "sync -autourl -R";
109
+ }else if( strncmp(zCmd, "ignore", n)==0 ){
110
+ int j;
111
+ db_begin_transaction();
112
+ for(j=3; j<g.argc; j++){
113
+ db_multi_exec("DELETE FROM global_config WHERE name GLOB 'repo:%q'",
114
+ g.argv[j]);
115
+ }
116
+ db_end_transaction(0);
117
+ return;
104118
}else{
105119
fossil_fatal("\"all\" subcommand should be one of: "
106
- "list ls push pull rebuild sync");
120
+ "ignore list ls push pull rebuild sync");
107121
}
108122
zFossil = quoteFilename(g.argv[0]);
109123
nMissing = 0;
110124
db_prepare(&q,
111125
"SELECT DISTINCT substr(name, 6) COLLATE nocase"
112126
--- src/allrepo.c
+++ src/allrepo.c
@@ -60,10 +60,13 @@
60 ** On Win32 systems, the file is named "_fossil" and is located in
61 ** %LOCALAPPDATA%, %APPDATA% or %HOMEPATH%.
62 **
63 ** Available operations are:
64 **
 
 
 
65 ** list | ls Display the location of all repositories
66 **
67 ** pull Run a "pull" operation on all repositories
68 **
69 ** push Run a "push" on all repositories
@@ -73,10 +76,12 @@
73 ** sync Run a "sync" on all repositories
74 **
75 ** Respositories are automatically added to the set of known repositories
76 ** when one of the following commands against the repository:
77 ** <a>clone</a>, <a>info</a>, <a>pull</a>, <a>push</a>, or <a>sync</a>
 
 
78 */
79 void all_cmd(void){
80 int n;
81 Stmt q;
82 const char *zCmd;
@@ -99,13 +104,22 @@
99 zCmd = "pull -autourl -R";
100 }else if( strncmp(zCmd, "rebuild", n)==0 ){
101 zCmd = "rebuild";
102 }else if( strncmp(zCmd, "sync", n)==0 ){
103 zCmd = "sync -autourl -R";
 
 
 
 
 
 
 
 
 
104 }else{
105 fossil_fatal("\"all\" subcommand should be one of: "
106 "list ls push pull rebuild sync");
107 }
108 zFossil = quoteFilename(g.argv[0]);
109 nMissing = 0;
110 db_prepare(&q,
111 "SELECT DISTINCT substr(name, 6) COLLATE nocase"
112
--- src/allrepo.c
+++ src/allrepo.c
@@ -60,10 +60,13 @@
60 ** On Win32 systems, the file is named "_fossil" and is located in
61 ** %LOCALAPPDATA%, %APPDATA% or %HOMEPATH%.
62 **
63 ** Available operations are:
64 **
65 ** ignore Arguments are repositories that should be ignored
66 ** by subsequent list, pull, push, rebuild, and sync.
67 **
68 ** list | ls Display the location of all repositories
69 **
70 ** pull Run a "pull" operation on all repositories
71 **
72 ** push Run a "push" on all repositories
@@ -73,10 +76,12 @@
76 ** sync Run a "sync" on all repositories
77 **
78 ** Respositories are automatically added to the set of known repositories
79 ** when one of the following commands against the repository:
80 ** <a>clone</a>, <a>info</a>, <a>pull</a>, <a>push</a>, or <a>sync</a>
81 ** Even previously ignored repositories are added back
82 ** to the list of repositories by these commands.
83 */
84 void all_cmd(void){
85 int n;
86 Stmt q;
87 const char *zCmd;
@@ -99,13 +104,22 @@
104 zCmd = "pull -autourl -R";
105 }else if( strncmp(zCmd, "rebuild", n)==0 ){
106 zCmd = "rebuild";
107 }else if( strncmp(zCmd, "sync", n)==0 ){
108 zCmd = "sync -autourl -R";
109 }else if( strncmp(zCmd, "ignore", n)==0 ){
110 int j;
111 db_begin_transaction();
112 for(j=3; j<g.argc; j++){
113 db_multi_exec("DELETE FROM global_config WHERE name GLOB 'repo:%q'",
114 g.argv[j]);
115 }
116 db_end_transaction(0);
117 return;
118 }else{
119 fossil_fatal("\"all\" subcommand should be one of: "
120 "ignore list ls push pull rebuild sync");
121 }
122 zFossil = quoteFilename(g.argv[0]);
123 nMissing = 0;
124 db_prepare(&q,
125 "SELECT DISTINCT substr(name, 6) COLLATE nocase"
126
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -433,10 +433,13 @@
433433
** "diff".
434434
**
435435
** The results of the internal diff command can also be seen in the gui:
436436
** 1. Go to the <a href="vdiff">vdiff</a> page
437437
** 2. use the "diff against another version" link on the Check-in detail view.
438
+**
439
+** The "-N" or "--new-file" option causes the complete text of added or
440
+** deleted files to be displayed.
438441
*/
439442
void diff_cmd(void){
440443
int isGDiff; /* True for gdiff. False for normal diff */
441444
int isInternDiff; /* True for internal diff */
442445
int hasNFlag; /* True if -N or --new-file flag is used */
443446
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -433,10 +433,13 @@
433 ** "diff".
434 **
435 ** The results of the internal diff command can also be seen in the gui:
436 ** 1. Go to the <a href="vdiff">vdiff</a> page
437 ** 2. use the "diff against another version" link on the Check-in detail view.
 
 
 
438 */
439 void diff_cmd(void){
440 int isGDiff; /* True for gdiff. False for normal diff */
441 int isInternDiff; /* True for internal diff */
442 int hasNFlag; /* True if -N or --new-file flag is used */
443
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -433,10 +433,13 @@
433 ** "diff".
434 **
435 ** The results of the internal diff command can also be seen in the gui:
436 ** 1. Go to the <a href="vdiff">vdiff</a> page
437 ** 2. use the "diff against another version" link on the Check-in detail view.
438 **
439 ** The "-N" or "--new-file" option causes the complete text of added or
440 ** deleted files to be displayed.
441 */
442 void diff_cmd(void){
443 int isGDiff; /* True for gdiff. False for normal diff */
444 int isInternDiff; /* True for internal diff */
445 int hasNFlag; /* True if -N or --new-file flag is used */
446
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -433,10 +433,13 @@
433433
** "diff".
434434
**
435435
** The results of the internal diff command can also be seen in the gui:
436436
** 1. Go to the <a href="vdiff">vdiff</a> page
437437
** 2. use the "diff against another version" link on the Check-in detail view.
438
+**
439
+** The "-N" or "--new-file" option causes the complete text of added or
440
+** deleted files to be displayed.
438441
*/
439442
void diff_cmd(void){
440443
int isGDiff; /* True for gdiff. False for normal diff */
441444
int isInternDiff; /* True for internal diff */
442445
int hasNFlag; /* True if -N or --new-file flag is used */
443446
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -433,10 +433,13 @@
433 ** "diff".
434 **
435 ** The results of the internal diff command can also be seen in the gui:
436 ** 1. Go to the <a href="vdiff">vdiff</a> page
437 ** 2. use the "diff against another version" link on the Check-in detail view.
 
 
 
438 */
439 void diff_cmd(void){
440 int isGDiff; /* True for gdiff. False for normal diff */
441 int isInternDiff; /* True for internal diff */
442 int hasNFlag; /* True if -N or --new-file flag is used */
443
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -433,10 +433,13 @@
433 ** "diff".
434 **
435 ** The results of the internal diff command can also be seen in the gui:
436 ** 1. Go to the <a href="vdiff">vdiff</a> page
437 ** 2. use the "diff against another version" link on the Check-in detail view.
438 **
439 ** The "-N" or "--new-file" option causes the complete text of added or
440 ** deleted files to be displayed.
441 */
442 void diff_cmd(void){
443 int isGDiff; /* True for gdiff. False for normal diff */
444 int isInternDiff; /* True for internal diff */
445 int hasNFlag; /* True if -N or --new-file flag is used */
446
+1 -1
--- src/wiki.c
+++ src/wiki.c
@@ -86,14 +86,14 @@
8686
if( !g.okRdWiki ){
8787
cgi_redirectf("%s/login?g=%s/home", g.zBaseURL, g.zBaseURL);
8888
}
8989
if( zIndexPage ){
9090
const char *zPathInfo = P("PATH_INFO");
91
+ while( zIndexPage[0]=='/' ) zIndexPage++;
9192
if( strcmp(zIndexPage, zPathInfo)==0 ) zIndexPage = 0;
9293
}
9394
if( zIndexPage ){
94
- while( zIndexPage[0]=='/' ) zIndexPage++;
9595
cgi_redirectf("%s/%s", g.zBaseURL, zIndexPage);
9696
}
9797
if( zPageName ){
9898
login_check_credentials();
9999
g.zExtra = zPageName;
100100
--- src/wiki.c
+++ src/wiki.c
@@ -86,14 +86,14 @@
86 if( !g.okRdWiki ){
87 cgi_redirectf("%s/login?g=%s/home", g.zBaseURL, g.zBaseURL);
88 }
89 if( zIndexPage ){
90 const char *zPathInfo = P("PATH_INFO");
 
91 if( strcmp(zIndexPage, zPathInfo)==0 ) zIndexPage = 0;
92 }
93 if( zIndexPage ){
94 while( zIndexPage[0]=='/' ) zIndexPage++;
95 cgi_redirectf("%s/%s", g.zBaseURL, zIndexPage);
96 }
97 if( zPageName ){
98 login_check_credentials();
99 g.zExtra = zPageName;
100
--- src/wiki.c
+++ src/wiki.c
@@ -86,14 +86,14 @@
86 if( !g.okRdWiki ){
87 cgi_redirectf("%s/login?g=%s/home", g.zBaseURL, g.zBaseURL);
88 }
89 if( zIndexPage ){
90 const char *zPathInfo = P("PATH_INFO");
91 while( zIndexPage[0]=='/' ) zIndexPage++;
92 if( strcmp(zIndexPage, zPathInfo)==0 ) zIndexPage = 0;
93 }
94 if( zIndexPage ){
 
95 cgi_redirectf("%s/%s", g.zBaseURL, zIndexPage);
96 }
97 if( zPageName ){
98 login_check_credentials();
99 g.zExtra = zPageName;
100
+1 -1
--- src/wiki.c
+++ src/wiki.c
@@ -86,14 +86,14 @@
8686
if( !g.okRdWiki ){
8787
cgi_redirectf("%s/login?g=%s/home", g.zBaseURL, g.zBaseURL);
8888
}
8989
if( zIndexPage ){
9090
const char *zPathInfo = P("PATH_INFO");
91
+ while( zIndexPage[0]=='/' ) zIndexPage++;
9192
if( strcmp(zIndexPage, zPathInfo)==0 ) zIndexPage = 0;
9293
}
9394
if( zIndexPage ){
94
- while( zIndexPage[0]=='/' ) zIndexPage++;
9595
cgi_redirectf("%s/%s", g.zBaseURL, zIndexPage);
9696
}
9797
if( zPageName ){
9898
login_check_credentials();
9999
g.zExtra = zPageName;
100100
--- src/wiki.c
+++ src/wiki.c
@@ -86,14 +86,14 @@
86 if( !g.okRdWiki ){
87 cgi_redirectf("%s/login?g=%s/home", g.zBaseURL, g.zBaseURL);
88 }
89 if( zIndexPage ){
90 const char *zPathInfo = P("PATH_INFO");
 
91 if( strcmp(zIndexPage, zPathInfo)==0 ) zIndexPage = 0;
92 }
93 if( zIndexPage ){
94 while( zIndexPage[0]=='/' ) zIndexPage++;
95 cgi_redirectf("%s/%s", g.zBaseURL, zIndexPage);
96 }
97 if( zPageName ){
98 login_check_credentials();
99 g.zExtra = zPageName;
100
--- src/wiki.c
+++ src/wiki.c
@@ -86,14 +86,14 @@
86 if( !g.okRdWiki ){
87 cgi_redirectf("%s/login?g=%s/home", g.zBaseURL, g.zBaseURL);
88 }
89 if( zIndexPage ){
90 const char *zPathInfo = P("PATH_INFO");
91 while( zIndexPage[0]=='/' ) zIndexPage++;
92 if( strcmp(zIndexPage, zPathInfo)==0 ) zIndexPage = 0;
93 }
94 if( zIndexPage ){
 
95 cgi_redirectf("%s/%s", g.zBaseURL, zIndexPage);
96 }
97 if( zPageName ){
98 login_check_credentials();
99 g.zExtra = zPageName;
100

Keyboard Shortcuts

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