1 |
Author: zmedico |
2 |
Date: 2010-01-29 18:47:09 +0000 (Fri, 29 Jan 2010) |
3 |
New Revision: 15244 |
4 |
|
5 |
Modified: |
6 |
main/branches/2.1.7/bin/repoman |
7 |
Log: |
8 |
only return status for the current directory (or the directory being asked for), instead of the whole tree |
9 |
(trunk r15188) |
10 |
|
11 |
Modified: main/branches/2.1.7/bin/repoman |
12 |
=================================================================== |
13 |
--- main/branches/2.1.7/bin/repoman 2010-01-29 18:46:55 UTC (rev 15243) |
14 |
+++ main/branches/2.1.7/bin/repoman 2010-01-29 18:47:09 UTC (rev 15244) |
15 |
@@ -928,7 +928,7 @@ |
16 |
if elem[:repo_subdir_len] == repo_subdir] |
17 |
mynew = ["./" + elem[:-1] for elem in mynew] |
18 |
elif vcs == "bzr": |
19 |
- bzrstatus = os.popen("bzr status -S").readlines() |
20 |
+ bzrstatus = os.popen("bzr status -S .").readlines() |
21 |
mychanged = [ "./" + elem.split()[-1:][0].split('/')[-1:][0] for elem in bzrstatus if elem and elem[1:2] == "M" ] |
22 |
mynew = [ "./" + elem.split()[-1:][0].split('/')[-1:][0] for elem in bzrstatus if elem and ( elem[1:2] == "NK" or elem[0:1] == "R" ) ] |
23 |
|
24 |
@@ -1970,7 +1970,7 @@ |
25 |
myf.close() |
26 |
if vcs == "bzr": |
27 |
try: |
28 |
- bzrstatus=os.popen("bzr status -S").readlines() |
29 |
+ bzrstatus=os.popen("bzr status -S .").readlines() |
30 |
myunadded = [ "./"+elem.rstrip().split()[1].split('/')[-1:][0] for elem in bzrstatus if elem.startswith("?") or elem[0:2] == " D" ] |
31 |
except SystemExit as e: |
32 |
raise # TODO propogate this |
33 |
@@ -2076,7 +2076,7 @@ |
34 |
myremoved = ["./" + elem[:-1] for elem in myremoved] |
35 |
|
36 |
if vcs == "bzr": |
37 |
- bzrstatus = os.popen("bzr status -S").readlines() |
38 |
+ bzrstatus = os.popen("bzr status -S .").readlines() |
39 |
mychanged = [ "./" + elem.split()[-1:][0].split('/')[-1:][0] for elem in bzrstatus if elem and elem[1:2] == "M" ] |
40 |
mynew = [ "./" + elem.split()[-1:][0].split('/')[-1:][0] for elem in bzrstatus if elem and ( elem[1:2] in "NK" or elem[0:1] == "R" ) ] |
41 |
myremoved = [ "./" + elem.split()[-1:][0].split('/')[-1:][0] for elem in bzrstatus if elem.startswith("-") ] |