Fossil SCM

Allow "fossil all ... -U|--user <username>"

jan.nijtmans 2013-05-15 09:33 trunk
Commit b388e7347d04ce24f830b0e5242e9a6a55ad18e8
1 file changed +4 -3
+4 -3
--- src/allrepo.c
+++ src/allrepo.c
@@ -66,11 +66,11 @@
6666
6767
6868
/*
6969
** COMMAND: all
7070
**
71
-** Usage: %fossil all (list|ls|pull|push|rebuild|sync)
71
+** Usage: %fossil all (changes|ignore|list|ls|pull|push|rebuild|sync)
7272
**
7373
** The ~/.fossil file records the location of all repositories for a
7474
** user. This command performs certain operations on all repositories
7575
** that can be useful before or after a period of disconnected operation.
7676
**
@@ -77,21 +77,21 @@
7777
** On Win32 systems, the file is named "_fossil" and is located in
7878
** %LOCALAPPDATA%, %APPDATA% or %HOMEPATH%.
7979
**
8080
** Available operations are:
8181
**
82
+** changes Shows all local checkouts that have uncommitted changes
83
+**
8284
** ignore Arguments are repositories that should be ignored
8385
** by subsequent list, pull, push, rebuild, and sync.
8486
** The -c|--ckout option causes the listed local checkouts
8587
** to be ignored instead.
8688
**
8789
** list | ls Display the location of all repositories.
8890
** The -c|--ckout option causes all local checkouts to be
8991
** list instead.
9092
**
91
-** changes Shows all local checkouts that have uncommitted changes
92
-**
9393
** pull Run a "pull" operation on all repositories
9494
**
9595
** push Run a "push" on all repositories
9696
**
9797
** rebuild Rebuild on all repositories
@@ -128,10 +128,11 @@
128128
}
129129
n = strlen(g.argv[2]);
130130
db_open_config(1);
131131
blob_zero(&extra);
132132
zCmd = g.argv[2];
133
+ if( g.zLogin ) blob_appendf(&extra, " -U %s", g.zLogin);
133134
if( strncmp(zCmd, "list", n)==0 || strncmp(zCmd,"ls",n)==0 ){
134135
zCmd = "list";
135136
useCheckouts = find_option("ckout","c",0)!=0;
136137
}else if( strncmp(zCmd, "push", n)==0 ){
137138
zCmd = "push -autourl -R";
138139
--- src/allrepo.c
+++ src/allrepo.c
@@ -66,11 +66,11 @@
66
67
68 /*
69 ** COMMAND: all
70 **
71 ** Usage: %fossil all (list|ls|pull|push|rebuild|sync)
72 **
73 ** The ~/.fossil file records the location of all repositories for a
74 ** user. This command performs certain operations on all repositories
75 ** that can be useful before or after a period of disconnected operation.
76 **
@@ -77,21 +77,21 @@
77 ** On Win32 systems, the file is named "_fossil" and is located in
78 ** %LOCALAPPDATA%, %APPDATA% or %HOMEPATH%.
79 **
80 ** Available operations are:
81 **
 
 
82 ** ignore Arguments are repositories that should be ignored
83 ** by subsequent list, pull, push, rebuild, and sync.
84 ** The -c|--ckout option causes the listed local checkouts
85 ** to be ignored instead.
86 **
87 ** list | ls Display the location of all repositories.
88 ** The -c|--ckout option causes all local checkouts to be
89 ** list instead.
90 **
91 ** changes Shows all local checkouts that have uncommitted changes
92 **
93 ** pull Run a "pull" operation on all repositories
94 **
95 ** push Run a "push" on all repositories
96 **
97 ** rebuild Rebuild on all repositories
@@ -128,10 +128,11 @@
128 }
129 n = strlen(g.argv[2]);
130 db_open_config(1);
131 blob_zero(&extra);
132 zCmd = g.argv[2];
 
133 if( strncmp(zCmd, "list", n)==0 || strncmp(zCmd,"ls",n)==0 ){
134 zCmd = "list";
135 useCheckouts = find_option("ckout","c",0)!=0;
136 }else if( strncmp(zCmd, "push", n)==0 ){
137 zCmd = "push -autourl -R";
138
--- src/allrepo.c
+++ src/allrepo.c
@@ -66,11 +66,11 @@
66
67
68 /*
69 ** COMMAND: all
70 **
71 ** Usage: %fossil all (changes|ignore|list|ls|pull|push|rebuild|sync)
72 **
73 ** The ~/.fossil file records the location of all repositories for a
74 ** user. This command performs certain operations on all repositories
75 ** that can be useful before or after a period of disconnected operation.
76 **
@@ -77,21 +77,21 @@
77 ** On Win32 systems, the file is named "_fossil" and is located in
78 ** %LOCALAPPDATA%, %APPDATA% or %HOMEPATH%.
79 **
80 ** Available operations are:
81 **
82 ** changes Shows all local checkouts that have uncommitted changes
83 **
84 ** ignore Arguments are repositories that should be ignored
85 ** by subsequent list, pull, push, rebuild, and sync.
86 ** The -c|--ckout option causes the listed local checkouts
87 ** to be ignored instead.
88 **
89 ** list | ls Display the location of all repositories.
90 ** The -c|--ckout option causes all local checkouts to be
91 ** list instead.
92 **
 
 
93 ** pull Run a "pull" operation on all repositories
94 **
95 ** push Run a "push" on all repositories
96 **
97 ** rebuild Rebuild on all repositories
@@ -128,10 +128,11 @@
128 }
129 n = strlen(g.argv[2]);
130 db_open_config(1);
131 blob_zero(&extra);
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

Keyboard Shortcuts

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