# HG changeset patch # User Martin Geisler # Date 2010-08-12 15:58:03 # Node ID 75de514a50f34e7acf2d7aca51af66d8e43134c7 # Parent 1c00577b029839e22116e6bd5304958e96aef29a patch: fix typo in comment diff --git a/mercurial/patch.py b/mercurial/patch.py --- a/mercurial/patch.py +++ b/mercurial/patch.py @@ -927,8 +927,8 @@ def selectfile(afile_orig, bfile_orig, h createfunc = hunk.createfile missing = not goodb and not gooda and not createfunc() - # some diff programs apparently produce create patches where the - # afile is not /dev/null, but afile starts with bfile + # some diff programs apparently produce patches where the afile is + # not /dev/null, but afile starts with bfile abasedir = afile[:afile.rfind('/') + 1] bbasedir = bfile[:bfile.rfind('/') + 1] if missing and abasedir == bbasedir and afile.startswith(bfile):