Adapt commit to use file matching code.
The code is slightly complicated by the need to commit all outstanding
changes in the repository if no file names are given (other commands
operate on the current directory and its subdirectories in this case).
localrepository.changes has acquired an optional match parameter, to let
it filter out include/exclude options.
+ hg clone http://localhost:20059/ copy
requesting all changes
abort: error: Connection refused
+ echo 255
255
+ ls copy
ls: copy: No such file or directory
+ cat
+ set +x
+ hg clone http://localhost:20059/foo copy2
requesting all changes
abort: HTTP Error 404: File not found
+ echo 255
255
+ set +x