comparison hgext/notify.py @ 2221:05b6c13f43c6

reverse sense of return value from python hooks. old scheme (False/None/0/'' == fail) made coding style unnatural, did not allow use of mercurial commands as hooks. new scheme (False/None/0 == pass) is pythonic, does not require peculiar "return True" at ends of hooks, allows hooks like this: [hooks] # update working dir after push into this repo changegroup.update = python:mercurial.commands.update
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Mon, 08 May 2006 10:59:58 -0700
parents 9569eea1707c
children e8f47dfb70f4
comparison
equal deleted inserted replaced
2220:6d3cc2a982f3 2221:05b6c13f43c6
253 else: 253 else:
254 count = 1 254 count = 1
255 n.node(node) 255 n.node(node)
256 n.diff(node) 256 n.diff(node)
257 n.send(node, count) 257 n.send(node, count)
258 return True