comparison mercurial/localrepo.py @ 1713:03ee100b8c21

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.
author Daniel Santa Cruz <byteshack@gmail.com>
date Fri, 10 Feb 2006 16:45:56 -0500
parents 21dcf38e5d7d
children ef8cd889a78b 7a4a16a7d21f 284fc722c342
comparison
equal deleted inserted replaced
1712:21dcf38e5d7d 1713:03ee100b8c21
1384 node=hex(self.changelog.node(cor+1))): 1384 node=hex(self.changelog.node(cor+1))):
1385 self.ui.warn(_("abort: changegroup hook returned failure!\n")) 1385 self.ui.warn(_("abort: changegroup hook returned failure!\n"))
1386 return 1 1386 return 1
1387 1387
1388 for i in range(cor + 1, cnr + 1): 1388 for i in range(cor + 1, cnr + 1):
1389 self.hook("commit", node=hex(self.changelog.node(i))) 1389 self.hook("incoming", node=hex(self.changelog.node(i)))
1390 1390
1391 return 1391 return
1392 1392
1393 def update(self, node, allow=False, force=False, choose=None, 1393 def update(self, node, allow=False, force=False, choose=None,
1394 moddirstate=True, forcemerge=False, wlock=None): 1394 moddirstate=True, forcemerge=False, wlock=None):