MANIFEST.in
author Christian Ebert <blacktrash@gmx.net>
Sat, 09 Oct 2010 11:33:04 +0100
changeset 813 9d01f9cab5e2
parent 238 e4a389eca1b9
permissions -rw-r--r--
Refactor kwtemplater.overwrite() Make kwexpand, kwshrink restricted commands - i.e. read from filelog without expansion for substition in kwtemplater.overwrite, and set/unset restricted mode for overwrite() in in kwcommitctx and the dorecord wrapper. Preselect candidates when working on changed files (rollback, record) outside kwtemplater class, and remove 6th argument from overwrite(). Avoid duplicate substitution/search in overwrite(): Only go into restricted read mode when reading from filelog. rollback and record read from the working directory, where restricted mode would already shrink keywords before overwrite() either expands or shrinks them again. This ensures that the usual automatic operations on keywords are turned off during overwrite() and only overwrite() itself acts on them. Reduce manifest calculation to the cases where it is needed. Move helper function for expansion removal outside kwtemplater class.

# $Id$

include tests/test-keyword tests/test-keyword.out

include MANIFEST.in