# HG changeset patch # User Steve Borho # Date 1233071928 21600 # Node ID 6fa7b6fb90a973dd2fa739ff8059e730a54ddaa1 # Parent 9f9bbd33f71e051b636d4b7d7baedbdf855e84f8 record: do not lose permission changes on commit diff -r 9f9bbd33f71e -r 6fa7b6fb90a9 hgext/record.py --- a/hgext/record.py Sun Jan 25 20:27:37 2009 +0100 +++ b/hgext/record.py Tue Jan 27 09:58:48 2009 -0600 @@ -475,7 +475,9 @@ try: ui.debug(_('applying patch\n')) ui.debug(fp.getvalue()) - patch.internalpatch(fp, ui, 1, repo.root) + pfiles = {} + patch.internalpatch(fp, ui, 1, repo.root, files=pfiles) + patch.updatedir(ui, repo, pfiles) except patch.PatchError, err: s = str(err) if s: diff -r 9f9bbd33f71e -r 6fa7b6fb90a9 tests/test-record --- a/tests/test-record Sun Jan 25 20:27:37 2009 +0100 +++ b/tests/test-record Tue Jan 27 09:58:48 2009 -0600 @@ -264,3 +264,35 @@ f EOF echo; hg tip -p + +echo % preserve chmod +x + +chmod +x f1 +echo a >> f1 +hg record -d '20 0' -mz <> f1 +hg record -d '21 0' -maa <> f1 +hg record -d '22 0' -mab <