Does hgext/zeroconf/Zeroconf.py really need +x permission?

Giorgos Keramidas keramida at ceid.upatras.gr
Mon May 4 22:54:14 CDT 2009


While testing a copy of rechmod.py, a local extension for restoring
working directory permissions, I noticed this:

keramida at kobe:/hg/mercurial/gker$ hg rechmod -n hgext mercurial | fgrep 755
755 x hgext/zeroconf/Zeroconf.py
keramida at kobe:/hg/mercurial/gker$

Zeroconf.py is the only *.py file that is executable.  Does it really
need that, or is it safe/ok to chmod it to 0644?

AFAICT, it is ok to remove +x from it.  It seems to load fine even
without the execute bit.



More information about the Mercurial-devel mailing list