7
6
b = Branch.open_containing(branch)[0]
10
b.repository.lock_read()
12
for revno, revision in iter_revisiondata(b):
13
new_descriptor = (revision.committer,
14
revision.properties.get('branch-nick'))
15
if descriptor is None:
16
descriptor = new_descriptor
19
if branch_change(descriptor, new_descriptor):
20
print_info(descriptor, start, revno - 1)
9
for revno, revision in iter_revisiondata(b):
10
new_descriptor = (revision.committer,
11
revision.properties.get('branch-nick'))
12
if descriptor is None:
22
13
descriptor = new_descriptor
23
print_info(descriptor, start, revno)
16
if branch_change(descriptor, new_descriptor):
17
print_info(descriptor, start, revno - 1)
19
descriptor = new_descriptor
20
print_info(descriptor, start, revno)
27
22
def branch_change(old_descriptor, new_descriptor):
29
old_email = extract_email_address(old_descriptor[0])
30
except errors.NoEmailInUsername:
33
new_email = extract_email_address(new_descriptor[0])
34
except errors.NoEmailInUsername:
36
23
if old_descriptor == new_descriptor:
38
25
elif None not in (old_descriptor[1], new_descriptor[1]) and \
41
28
elif short_committer(old_descriptor[0]) ==\
42
29
short_committer(new_descriptor[0]):
44
elif old_descriptor[0].strip(' ') == new_email:
31
elif old_descriptor[0].strip(' ') == \
32
extract_email_address(new_descriptor[0]):
46
elif new_descriptor[0].strip(' ') == old_email:
34
elif new_descriptor[0].strip(' ') == \
35
extract_email_address(old_descriptor[0]):