mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
hooks: distinguish between locally committed and incoming changes.
"commit" hook is now for locally committed changes only. "incoming" is for changes pulled, pushed, or unbundled into local repo.
This commit is contained in:
parent
c329a8e132
commit
4cdd5950a7
@ -1386,7 +1386,7 @@ class localrepository(object):
|
||||
return 1
|
||||
|
||||
for i in range(cor + 1, cnr + 1):
|
||||
self.hook("commit", node=hex(self.changelog.node(i)))
|
||||
self.hook("incoming", node=hex(self.changelog.node(i)))
|
||||
|
||||
return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user