diff options
Diffstat (limited to 'libbe/bugdir.py')
-rw-r--r-- | libbe/bugdir.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libbe/bugdir.py b/libbe/bugdir.py index 414b47e..bfe9a27 100644 --- a/libbe/bugdir.py +++ b/libbe/bugdir.py @@ -141,7 +141,7 @@ class BugDir: except NoSuchFile: self.settings = {"rcs_name": "None"} - rcs_name = setting_property("rcs_name", ("None", "bzr", "Arch")) + rcs_name = setting_property("rcs_name", ("None", "bzr", "Arch", "hg")) _rcs = None target = setting_property("target") @@ -287,8 +287,11 @@ class Bug(object): return Comment(uuid, self) def iter_comment_ids(self): + path = self.get_path("comments") + if not os.path.isdir(path): + return try: - for uuid in os.listdir(self.get_path("comments")): + for uuid in os.listdir(path): if (uuid.startswith('.')): continue yield uuid |