aboutsummaryrefslogtreecommitdiffstats
path: root/.be/bugs/a403de79-8f39-41f2-b9ec-15053b175ee2/comments/208595bd-35b8-44c2-bf97-fc5ef9e7a58d/body
blob: 7f46872e3f84c345070ec5cee101b880e212798c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Example:

We're working happily in a versioned bugdir, and our RCS knows who we
are.  We create a temporary repository copy from a previous revision
for diff generation.  We set the RCS for the copy to "None", since we
didn't bother initializing our normal RCS in the snapshot copy.  But
now the BugDir instantized on the copy doesn't know who we are!

Solution:

Track user id in the bugdir settings file.  If you
bugdir.settings["user_id"], it will be saved and loaded.  When loaded,
it will also set bugdir.user_id.  If you set rcs.user_id, it will be
returned by rcs.get_user_id(), instead of returing the output of
rcs._rcs_get_user_id().  We should be caching the output of
_rcs_get_user_id() anyway.