Mercurial > hg
changeset 23147:9174863c58e4
largefiles: simplify check for lack of path arguments
Instead of checking for a partial merge by checking that the matches
has no files and no patterns, check that it's not an
always-matcher. Except for being shorter, it also catches the rare
case of an exact-matcher with no files.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sun, 02 Nov 2014 13:18:08 -0800 |
parents | 5311de37b86f |
children | b405dd6c90bf |
files | hgext/largefiles/reposetup.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/largefiles/reposetup.py Fri Oct 31 14:11:47 2014 -0700 +++ b/hgext/largefiles/reposetup.py Sun Nov 02 13:18:08 2014 -0800 @@ -284,8 +284,7 @@ # Case 1: user calls commit with no specific files or # include/exclude patterns: refresh and commit all files that # are "dirty". - if ((match is None) or - (not match.anypats() and not match.files())): + if match is None or match.always(): # Spend a bit of time here to get a list of files we know # are modified so we can compare only against those. # It can cost a lot of time (several seconds)