aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--becommands/comment.py2
-rw-r--r--becommands/target.py2
-rw-r--r--libbe/bugdir.py10
-rw-r--r--libbe/diff.py4
4 files changed, 9 insertions, 9 deletions
diff --git a/becommands/comment.py b/becommands/comment.py
index 8e899ce..fbc994f 100644
--- a/becommands/comment.py
+++ b/becommands/comment.py
@@ -145,7 +145,7 @@ def complete(options, args, parser):
bd = bugdir.BugDir(from_disk=True,
manipulate_encodings=False)
bugs = []
- for uuid in bd.list_uuids():
+ for uuid in bd.uuids():
if uuid.startswith(partial):
bug = bd.bug_from_uuid(uuid)
if bug.active == True:
diff --git a/becommands/target.py b/becommands/target.py
index efb2479..9a202b1 100644
--- a/becommands/target.py
+++ b/becommands/target.py
@@ -50,7 +50,7 @@ def execute(args, manipulate_encodings=True, restrict_file_access=False):
bd = bugdir.BugDir(from_disk=True,
manipulate_encodings=manipulate_encodings)
if options.list:
- ts = set([bd.bug_from_uuid(bug).target for bug in bd.list_uuids()])
+ ts = set([bd.bug_from_uuid(bug).target for bug in bd.uuids()])
for target in sorted(ts):
if target and isinstance(target,str):
print target
diff --git a/libbe/bugdir.py b/libbe/bugdir.py
index 675b744..3d07754 100644
--- a/libbe/bugdir.py
+++ b/libbe/bugdir.py
@@ -239,7 +239,7 @@ settings easy. Don't set this attribute. Set .vcs instead, and
map = {}
for bug in self:
map[bug.uuid] = bug
- for uuid in self.list_uuids():
+ for uuid in self.uuids():
if uuid not in map:
map[uuid] = None
self._bug_map_value = map # ._bug_map_value used by @local_property
@@ -483,7 +483,7 @@ settings easy. Don't set this attribute. Set .vcs instead, and
if self.sync_with_disk == False:
raise DiskAccessRequired("load all bugs")
self._clear_bugs()
- for uuid in self.list_uuids():
+ for uuid in self.uuids():
self._load_bug(uuid)
def save(self):
@@ -550,7 +550,7 @@ settings easy. Don't set this attribute. Set .vcs instead, and
# methods for managing bugs
- def list_uuids(self):
+ def uuids(self):
uuids = []
if self.sync_with_disk == True and os.path.exists(self.get_path()):
# list the uuids on disk
@@ -651,7 +651,7 @@ class SimpleBugDir (BugDir):
"""
For testing. Set sync_with_disk==False for a memory-only bugdir.
>>> bugdir = SimpleBugDir()
- >>> uuids = list(bugdir.list_uuids())
+ >>> uuids = list(bugdir.uuids())
>>> uuids.sort()
>>> print uuids
['a', 'b']
@@ -741,7 +741,7 @@ class BugDirTestCase(unittest.TestCase):
self.bugdir.new_bug(uuid="c", summary="Praying mantis")
length = len(self.bugdir)
self.failUnless(length == 3, "%d != 3 bugs" % length)
- uuids = list(self.bugdir.list_uuids())
+ uuids = list(self.bugdir.uuids())
self.failUnless(len(uuids) == 3, "%d != 3 uuids" % len(uuids))
self.failUnless(uuids == ["a","b","c"], str(uuids))
bugA = self.bugdir.bug_from_uuid("a")
diff --git a/libbe/diff.py b/libbe/diff.py
index cce3b0f..6e830c6 100644
--- a/libbe/diff.py
+++ b/libbe/diff.py
@@ -207,7 +207,7 @@ class Diff (object):
added = []
removed = []
modified = []
- for uuid in self.new_bugdir.list_uuids():
+ for uuid in self.new_bugdir.uuids():
new_bug = self.new_bugdir.bug_from_uuid(uuid)
try:
old_bug = self.old_bugdir.bug_from_uuid(uuid)
@@ -220,7 +220,7 @@ class Diff (object):
new_bug.load_comments()
if old_bug != new_bug:
modified.append((old_bug, new_bug))
- for uuid in self.old_bugdir.list_uuids():
+ for uuid in self.old_bugdir.uuids():
if not self.new_bugdir.has_bug(uuid):
old_bug = self.old_bugdir.bug_from_uuid(uuid)
removed.append(old_bug)