this patch series add 'changectx.dirs()' to recognize directory matching pattern correctly. patch #1 defines 'adddirs()' in util.py to use it also for bug fix of largefiles extension. patch #2 is a kind of refactoring for invalid pattern detection in 'changectx.walk()'.