aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/arch.py
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2005-03-09 22:08:45 +0000
committerAaron Bentley <abentley@panoramicfeedback.com>2005-03-09 22:08:45 +0000
commit18b5752e6b696b8ef7839c3e8b8e0373e49b75bd (patch)
tree6bf7b97e63f13b18ce35f9c2ff0353e869096fc1 /libbe/arch.py
parent079b9a6c710755e21a0d05132e305ee89fb89863 (diff)
downloadbugseverywhere-18b5752e6b696b8ef7839c3e8b8e0373e49b75bd.tar.gz
Added RCS integration
Diffstat (limited to 'libbe/arch.py')
-rw-r--r--libbe/arch.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/libbe/arch.py b/libbe/arch.py
new file mode 100644
index 0000000..6cc3dbb
--- /dev/null
+++ b/libbe/arch.py
@@ -0,0 +1,15 @@
+from popen2 import Popen4
+import os
+
+def invoke(args):
+ q=Popen4(args)
+ output = q.fromchild.read()
+ status = q.wait()
+ if os.WIFEXITED(status):
+ return (os.WEXITSTATUS(status))
+
+def add_id(filename):
+ return invoke(("tla", "add-id", filename))
+
+def delete_id(filename):
+ return invoke(("tla", "delete-id", filename))