cat hg hgrc hooks commit python home pl el cl ga hooksss py save_versi

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# cat .hg/hgrc
[hooks]
commit = python:/home/pl/el/cl/ga/hooksss.py:save_version
# hg ci
abort: commit hook is invalid (import of "/home/pl/el/cl/ga/hooksss" failed)
# head -n 4 /home/pl/el/cl/ga/hooksss.py
#!/usr/bin/env python
#-*- coding: utf8 -*-
def save_version(node, parent1, parent2):