Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
quark |
hg-reviewers |
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/changegroup.py (4 lines) |
Status | Author | Revision | |
---|---|---|---|
Closed | durin42 | ||
Closed | durin42 | ||
Abandoned | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 |
def runhooks(): | def runhooks(): | ||||
# These hooks run when the lock releases, not when the | # These hooks run when the lock releases, not when the | ||||
# transaction closes. So it's possible for the changelog | # transaction closes. So it's possible for the changelog | ||||
# to have changed since we last saw it. | # to have changed since we last saw it. | ||||
if clstart >= len(repo): | if clstart >= len(repo): | ||||
return | return | ||||
repo.hook("changegroup", **hookargs) | repo.hook("changegroup", **pycompat.strkwargs(hookargs)) | ||||
for n in added: | for n in added: | ||||
args = hookargs.copy() | args = hookargs.copy() | ||||
args['node'] = hex(n) | args['node'] = hex(n) | ||||
del args['node_last'] | del args['node_last'] | ||||
repo.hook("incoming", **args) | repo.hook("incoming", **pycompat.strkwargs(args)) | ||||
newheads = [h for h in repo.heads() | newheads = [h for h in repo.heads() | ||||
if h not in oldheads] | if h not in oldheads] | ||||
repo.ui.log("incoming", | repo.ui.log("incoming", | ||||
"%s incoming changes - new heads: %s\n", | "%s incoming changes - new heads: %s\n", | ||||
len(added), | len(added), | ||||
', '.join([hex(c[:6]) for c in newheads])) | ', '.join([hex(c[:6]) for c in newheads])) | ||||