comparison mercurial/keepalive.py @ 16521:592701c8eac6 stable

revset: fix adds/modifies/removes and patterns (issue3403) The fast path was triggered if the argument was not like "type:value", with type a known pattern type. This is wrong for several reasons: - path:value is valid for the fast path - '*' is interpreted as a glob by default and is not valid for fast path Fast path detection is now done after the pattern is parsed, and the normalized path is extracted for direct comparison. All this seems a bit complicated, it is tempting to drop the fast path completely. Also, the hasfile() revset does something similar (only check .files()), without a fast path. If the fast path is really that efficient maybe it should be used there too. Note that: $ log 'modifies("set:modified()")' is different from: $ log 'modifies("*")' because of the usual merge ctx.files()/status(ctx.p1(), ctx) differences. Reported by Steffen Eichenberg <steffen.eichenberg@msg-gillardon.de>
author Patrick Mezard <patrick@mezard.eu>
date Thu, 26 Apr 2012 14:24:46 +0200
parents 7de7630053cb
children 67964cda8701
comparison
equal deleted inserted replaced
16520:4bce649a2b0f 16521:592701c8eac6