aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/rcs.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2008-11-23 08:16:19 -0500
committerW. Trevor King <wking@drexel.edu>2008-11-23 08:16:19 -0500
commit1864e9d3736125ae80c7be33dd181d7636d912e7 (patch)
tree54f3d97adce07d057cb42610739046d689836263 /libbe/rcs.py
parentb08c53301aa3d998ffe099a34b8b42414e741d75 (diff)
downloadbugseverywhere-1864e9d3736125ae80c7be33dd181d7636d912e7.tar.gz
Added bugdir user-id caching and save/load from settings file.
Diffstat (limited to 'libbe/rcs.py')
-rw-r--r--libbe/rcs.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/libbe/rcs.py b/libbe/rcs.py
index 10338b9..e467943 100644
--- a/libbe/rcs.py
+++ b/libbe/rcs.py
@@ -215,8 +215,12 @@ class RCS(object):
"""
Get the RCS's suggested user id (e.g. "John Doe <jdoe@example.com>").
If the RCS has not been configured with a username, return the user's
- id.
+ id. You can override the automatic lookup procedure by setting the
+ RCS.user_id attribute to a string of your choice.
"""
+ if hasattr(self, "user_id"):
+ if self.user_id != None:
+ return self.user_id
id = self._rcs_get_user_id()
if id == None:
name = self._u_get_fallback_username()