hooks: distinguish between locally committed and incoming changes.
authorDaniel Santa Cruz <byteshack@gmail.com>
Fri, 10 Feb 2006 16:45:56 -0500
changeset 1713 03ee100b8c21
parent 1712 21dcf38e5d7d
child 1714 eabfbd220f39
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.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Thu Feb 09 17:18:43 2006 -0600
+++ b/mercurial/localrepo.py	Fri Feb 10 16:45:56 2006 -0500
@@ -1386,7 +1386,7 @@
                 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