hg stat show modified file, but hg diff -g doesnt has modfication

2017-09-01 Thread Marco Wegner
Sometimes after hg pull i have files, which are marked as modified although i konw that i havent modified these files. It seems that in dirstate is a wrong mode. For example: hg stat -m M pkplan/pkp_core.c hg diff -g pkplan/pkp_core.c 'shows nothing ls -la pkplan/pkp_core.c -rwxrwxr-x 1 user1

Simple extension gives TypeError: expected a 20-byte hash

2018-05-16 Thread Marco Wegner
Hello, im trying to write an extension, that adds some Text at the end of the commitmessage. But my example gives me an TypeError: expected a 20-byte hash error on commit. Where is my failure? Here is my extension code: #!/usr/bin/python import re import mercurial, sys, os def reposetup(ui,