summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/2011-January/001805.html
blob: 318be50d9b5c03e999effdc29111e10bd43911db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-sysadm] [256] append '@' to (almost) all svn paths, to avoid svn syntax problems in case of paths containing '@'
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B256%5D%20append%20%27%40%27%20to%20%28almost%29%20all%20svn%20paths%2C%0A%20to%20avoid%20svn%20syntax%20problems%20in%20case%20of%20paths%20containing%20%27%40%27&In-Reply-To=%3C20110109030932.418893FDAA%40valstar.mageia.org%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="001804.html">
   <LINK REL="Next"  HREF="001806.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-sysadm] [256] append '@' to (almost) all svn paths, to avoid svn syntax problems in case of paths containing '@'</H1>
    <B>root at mageia.org</B> 
    <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B256%5D%20append%20%27%40%27%20to%20%28almost%29%20all%20svn%20paths%2C%0A%20to%20avoid%20svn%20syntax%20problems%20in%20case%20of%20paths%20containing%20%27%40%27&In-Reply-To=%3C20110109030932.418893FDAA%40valstar.mageia.org%3E"
       TITLE="[Mageia-sysadm] [256] append '@' to (almost) all svn paths, to avoid svn syntax problems in case of paths containing '@'">root at mageia.org
       </A><BR>
    <I>Sun Jan  9 04:09:32 CET 2011</I>
    <P><UL>
        <LI>Previous message: <A HREF="001804.html">[Mageia-sysadm] [255] mgarepo version 1.9.4
</A></li>
        <LI>Next message: <A HREF="001806.html">[Mageia-sysadm] [737] disable ecosse temporarily
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#1805">[ date ]</a>
              <a href="thread.html#1805">[ thread ]</a>
              <a href="subject.html#1805">[ subject ]</a>
              <a href="author.html#1805">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Revision: 256
Author:   boklm
Date:     2011-01-09 04:09:31 +0100 (Sun, 09 Jan 2011)
Log Message:
-----------
append '@' to (almost) all svn paths, to avoid svn syntax problems in case of paths containing '@'

Modified Paths:
--------------
    build_system/mgarepo/trunk/RepSys/svn.py

Modified: build_system/mgarepo/trunk/RepSys/svn.py
===================================================================
--- build_system/mgarepo/trunk/RepSys/svn.py	2011-01-09 02:18:37 UTC (rev 255)
+++ build_system/mgarepo/trunk/RepSys/svn.py	2011-01-09 03:09:31 UTC (rev 256)
@@ -109,24 +109,24 @@
                 cmd_args.append(&quot;-r '%s'&quot; % ret)
         
     def add(self, path, **kwargs):
-        cmd = [&quot;add&quot;, path]
+        cmd = [&quot;add&quot;, path + '@']
         return self._execsvn_success(noauth=1, *cmd, **kwargs)
 
     def copy(self, pathfrom, pathto, **kwargs):
-        cmd = [&quot;copy&quot;, pathfrom, pathto]
+        cmd = [&quot;copy&quot;, pathfrom + '@', pathto + '@']
         self._add_revision(cmd, kwargs, optional=1)
         self._add_log(cmd, kwargs)
         return self._execsvn_success(*cmd, **kwargs)
 
     def remove(self, path, force=0, **kwargs):
-        cmd = [&quot;remove&quot;, path]
+        cmd = [&quot;remove&quot;, path + '@']
         self._add_log(cmd, kwargs)
         if force:
             cmd.append(&quot;--force&quot;)
         return self._execsvn_success(*cmd, **kwargs)
 
     def mkdir(self, path, **kwargs):
-        cmd = [&quot;mkdir&quot;, path]
+        cmd = [&quot;mkdir&quot;, path + '@']
         if kwargs.get(&quot;parents&quot;):
             cmd.append(&quot;--parents&quot;)
         self._add_log(cmd, kwargs)
@@ -140,7 +140,7 @@
             return int(rawrev)
 
     def commit(self, path, **kwargs):
-        cmd = [&quot;commit&quot;, path]
+        cmd = [&quot;commit&quot;, path + '@']
         if kwargs.get(&quot;nonrecursive&quot;):
             cmd.append(&quot;-N&quot;)
         self._add_log(cmd, kwargs)
@@ -181,7 +181,7 @@
         return self._execsvn_success(local=True, show=True, *cmd, **kwargs)
 
     def revision(self, path, **kwargs):
-        cmd = [&quot;info&quot;, path]
+        cmd = [&quot;info&quot;, path + '@']
         status, output = self._execsvn(local=True, *cmd, **kwargs)
         if status == 0:
             for line in output.splitlines():
@@ -190,7 +190,7 @@
         return None
           
     def info(self, path, **kwargs):
-        cmd = [&quot;info&quot;, path]
+        cmd = [&quot;info&quot;, path + '@']
         status, output = self._execsvn(local=True, noerror=True, *cmd, **kwargs)
         if &quot;Not a versioned resource&quot; not in output:
             return output.splitlines()
@@ -205,14 +205,14 @@
         return info
           
     def ls(self, path, **kwargs):
-        cmd = [&quot;ls&quot;, path]
+        cmd = [&quot;ls&quot;, path + '@']
         status, output = self._execsvn(*cmd, **kwargs)
         if status == 0:
             return output.split()
         return None
 
     def status(self, path, **kwargs):
-        cmd = [&quot;status&quot;, path]
+        cmd = [&quot;status&quot;, path + '@']
         if kwargs.get(&quot;verbose&quot;):
             cmd.append(&quot;-v&quot;)
         if kwargs.get(&quot;noignore&quot;):
@@ -225,11 +225,11 @@
         return None
 
     def cleanup(self, path, **kwargs):
-        cmd = [&quot;cleanup&quot;, path]
+        cmd = [&quot;cleanup&quot;, path + '@']
         return self._execsvn_success(*cmd, **kwargs)
 
     def revert(self, path, **kwargs):
-        cmd = [&quot;revert&quot;, path]
+        cmd = [&quot;revert&quot;, path + '@']
         status, output = self._execsvn(*cmd, **kwargs)
         if status == 0:
             return [x.split() for x in output.split()]
@@ -249,7 +249,7 @@
         return self._execsvn_success(*cmd, **kwargs)
 
     def update(self, path, **kwargs):
-        cmd = [&quot;update&quot;, path]
+        cmd = [&quot;update&quot;, path + '@']
         self._add_revision(cmd, kwargs, optional=1)
         status, output = self._execsvn(*cmd, **kwargs)
         if status == 0:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: &lt;/pipermail/mageia-sysadm/attachments/20110109/82f2a3ae/attachment.html&gt;
</PRE>









<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="001804.html">[Mageia-sysadm] [255] mgarepo version 1.9.4
</A></li>
	<LI>Next message: <A HREF="001806.html">[Mageia-sysadm] [737] disable ecosse temporarily
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#1805">[ date ]</a>
              <a href="thread.html#1805">[ thread ]</a>
              <a href="subject.html#1805">[ subject ]</a>
              <a href="author.html#1805">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-sysadm">More information about the Mageia-sysadm
mailing list</a><br>
</body></html>