patch: return list of modified files even when an exception is raised
The file list is passed in as an argument and updated in place.
This fixes issue399.
#!/usr/bin/env python#import doctestimport mercurial.changelog# test doctest from changelogdoctest.testmod(mercurial.changelog)