aboutsummaryrefslogtreecommitdiffstats
path: root/libbe
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2008-11-23 06:51:30 -0500
committerW. Trevor King <wking@drexel.edu>2008-11-23 06:51:30 -0500
commit9e0a846ff4fdaac45665e5a1e085aa37e3fa135b (patch)
tree45f9b590a6f239203993baf45ca59d003f5582f8 /libbe
parent4a626e67b3f401b8e242a55571a802147123a196 (diff)
downloadbugseverywhere-9e0a846ff4fdaac45665e5a1e085aa37e3fa135b.tar.gz
Added archive/project init code for `./test_usage.sh arch`.
Also some minor cleanups.
Diffstat (limited to 'libbe')
-rw-r--r--libbe/arch.py7
-rw-r--r--libbe/comment.py2
-rw-r--r--libbe/utility.py1
3 files changed, 1 insertions, 9 deletions
diff --git a/libbe/arch.py b/libbe/arch.py
index ba341e6..fd953a4 100644
--- a/libbe/arch.py
+++ b/libbe/arch.py
@@ -69,7 +69,6 @@ class Arch(RCS):
self._tmp_archive = True
self._u_invoke_client("make-archive", self._archive_name,
self._archive_dir, directory=path)
- self._u_invoke_client("archives")
def _invoke_client(self, *args, **kwargs):
"""
Invoke the client on our archive.
@@ -191,7 +190,6 @@ class Arch(RCS):
self._project_name = project_name
def _rcs_get_user_id(self):
try:
- self._u_invoke_client("archives")
status,output,error = self._u_invoke_client('my-id')
return output.rstrip('\n')
except Exception, e:
@@ -202,13 +200,11 @@ class Arch(RCS):
def _rcs_set_user_id(self, value):
self._u_invoke_client('my-id', value)
def _rcs_add(self, path):
- self._u_invoke_client("archives")
self._u_invoke_client("add-id", path)
realpath = os.path.realpath(self._u_abspath(path))
pathAdded = realpath in self._list_added(self.rootdir)
if self.paranoid and not pathAdded:
self._force_source(path)
- self._u_invoke_client("archives")
def _list_added(self, root):
assert os.path.exists(root)
assert os.access(root, os.X_OK)
@@ -252,9 +248,6 @@ class Arch(RCS):
def _rcs_commit(self, commitfile):
summary,body = self._u_parse_commitfile(commitfile)
#status,output,error = self._invoke_client("make-log")
- self._u_invoke_client("tree-root")
- self._u_invoke_client("tree-version")
- self._u_invoke_client("archives")
if body == None:
status,output,error \
= self._u_invoke_client("commit","--summary",summary)
diff --git a/libbe/comment.py b/libbe/comment.py
index 95dade6..0bfc12d 100644
--- a/libbe/comment.py
+++ b/libbe/comment.py
@@ -218,7 +218,7 @@ class Comment(Tree):
def add_reply(self, reply):
if reply.time != None and self.time != None:
- assert reply.time > self.time
+ assert reply.time >= self.time
if self.uuid != INVALID_UUID:
reply.in_reply_to = self.uuid
self.append(reply)
diff --git a/libbe/utility.py b/libbe/utility.py
index f156ce9..3f69a95 100644
--- a/libbe/utility.py
+++ b/libbe/utility.py
@@ -105,7 +105,6 @@ class Dir (object):
def __del__(self):
self.cleanup()
def cleanup(self):
- print "Removing", self.path
self.shutil.rmtree(self.path)
def __call__(self):
return self.path