Removed friendly bug name
authorAaron Bentley <abentley@panoramicfeedback.com>
Fri, 11 Mar 2005 16:45:20 +0000 (16:45 +0000)
committerAaron Bentley <abentley@panoramicfeedback.com>
Fri, 11 Mar 2005 16:45:20 +0000 (16:45 +0000)
.be/bugs/f65b680b-4309-43a2-ae2d-e65811c9d107/status
be
libbe/bugdir.py
libbe/cmdutil.py
libbe/names.py

index f510327578a4562e26a7c64bdf061e4a49f85ee6..1ac208286a54bf10746bac5466010b15663a0a6e 100644 (file)
@@ -1 +1 @@
-open
+closed
diff --git a/be b/be
index 6bc93ab773be9d8e2fe8f34a6b5c5dd1241d6eda..1dbcee0e7a40130fcee3bdb641552fd2634fd827 100755 (executable)
--- a/be
+++ b/be
@@ -53,7 +53,6 @@ def new_bug(args):
     bugs = (dir.list())
     bug = dir.new_bug()
     bug.creator = names.creator()
-    bug.name = names.friendly_name(bugs, bug.creator)
     bug.severity = "minor"
     bug.status = "open"
     bug.summary = args[0]
index fd7b0f65f01b493d3e404916cd79e53a08a4bc99..0008be8dbd1a395e2a53c1c801119f45fa0d7d73 100644 (file)
@@ -75,13 +75,6 @@ class Bug(object):
     def get_path(self, file):
         return os.path.join(self.path, file)
 
-    def _get_name(self):
-        return self._get_value("name")
-    
-    def _set_name(self, value):
-        return self._set_value("name", value)
-    
-    name = file_property("name")
     summary = file_property("summary")
     creator = file_property("creator")
     target = file_property("target")
index e7ded4f672c426618db10a9e77a47e07e1c8f7a5..ac67f3a8d79094e3121c8b345b403998e6d63570 100644 (file)
@@ -24,14 +24,8 @@ def get_bug(spec, bug_dir):
         return matches[0]
         
     matches = []
-    for bug in bugs:
-        if bug.name == spec:
-            matches.append(bug)
-    if len(matches) > 1:
-        raise UserError("More than one bug has the name %s.  Please use the"
-                        " uuid." % spec)
     if len(matches) == 0:
-        raise UserError("No bug has the name %s" % spec)
+        raise UserError("No bug matches %s" % spec)
     return matches[0]
 
 def bug_summary(bug, bugs):
index 1c54dc2e3146a70d60f51cff1431f2c541b2f8e5..1951046ea45aeec38620007e71cdcf3b75ceae93 100644 (file)
@@ -6,17 +6,3 @@ def uuid():
 
 def creator():
     return os.environ["LOGNAME"]
-
-def friendly_name(bugs, ctor):
-    last = 0
-    for bug in bugs:
-        name = bug.name
-        if name is None:
-            continue
-        if name.startswith(ctor):
-            num = int(name.split("-")[-1])
-            if num > last:
-                last = num
-    return "%s-%i" % (ctor, last+1)
-
-