-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BF: make logic more consistent for files=[] argument (which is False but not None) #6976
Conversation
…but not None) Similar problem was resolved previously at higher level in http://github.com/datalad/datalad/commit/ec0243c92822f36ada5e87557eb9f5f53929c9ff for get_content_info. But IMHO it could and should be resolved at the lowest/common point of invocation, that is why I added it to _generator_call_git which is underlying most (if not all, hard to tell now ;) ) git invocations. I also fixed a few other invocations where it was pure `if files` or `if paths` instead of correctly checking against None.
Codecov Report
@@ Coverage Diff @@
## maint #6976 +/- ##
==========================================
+ Coverage 90.13% 90.61% +0.47%
==========================================
Files 354 354
Lines 46326 46328 +2
Branches 6613 0 -6613
==========================================
+ Hits 41755 41978 +223
+ Misses 4554 4350 -204
+ Partials 17 0 -17
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
wow -- "all green" . The only confusing item is a flaky test failure on Travis - confused since I thought that we xfail'ed that test_ExtractedArchive recently in https://github.com/datalad/datalad/pull/6912/files . And code in traceback shows that |
a6814ba
to
7a0bf01
Compare
eh, last commit adjusting for "early decision making" did introduce regression!
because there is apparently some extra semantic of
which is imho likely something to be done outside or with a helper... Hence I reverted that shortcut return change, leaving only the portion for that "heavily debated" |
appveyor fail is unrelated
Let's proceed with the release and someone could subsequently push on more of similar unification or adding shortcut returns for some performance benefit. |
🚀 PR was released in |
Similar problem was resolved previously at higher level in
http://github.com/datalad/datalad/commit/ec0243c92822f36ada5e87557eb9f5f53929c9ff
for get_content_info. But IMHO it could and should be resolved at the
lowest/common point of invocation, that is why I added it to
_generator_call_git which is underlying most (if not all, hard to tell now ;) )
git invocations.
I also fixed a few other invocations where it was pure
if files
orif paths
.This commit was initially proposed as a part of the #6974 but there it failed and later I realized that approach I proposed in that PR for
get_modules_
was flawed, so this PR is dedicated to only this change (although at once across different commands/levels). Want to see if we could distill it independently.