-
Notifications
You must be signed in to change notification settings - Fork 110
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
addurls: Don't pass --nosave to create (and use rev-create) #3259
Conversation
This isn't a real attempt to make these tests portable, but we might as well avoid joining _local_ paths with "/". (Many of the hard-coded "/"s are within the HTTPPath URL paths.)
Follow up on datalad#3252.
d3d6610 (ENH: --no-save flag for addurls, 2018-03-14) propagated the --nosave flag through to the create calls. However, there's not an obvious scenario where an addurls caller would want to leave the initial dataset files untracked, and create's replacement, rev-create, doesn't offer a --nosave option. Start saving the dataset on creation even when --nosave is passed. Re: datalad#3252
dataladgh-3252 didn't do this because rev-create dropped create's --nosave flag, and addurls unnecessarily propagated --nosave to create. This is no longer the case.
Codecov Report
@@ Coverage Diff @@
## master #3259 +/- ##
==========================================
+ Coverage 90.97% 91.02% +0.04%
==========================================
Files 263 263
Lines 34125 34131 +6
==========================================
+ Hits 31046 31068 +22
+ Misses 3079 3063 -16
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #3259 +/- ##
==========================================
+ Coverage 90.97% 91.02% +0.04%
==========================================
Files 263 263
Lines 34125 34131 +6
==========================================
+ Hits 31046 31068 +22
+ Misses 3079 3063 -16
Continue to review full report at Codecov.
|
the PR was #2302 which says This pull request fixes #2280. It adds a --nosave flag to addurls so that it's possible to say datalad run 'datalad addurls ...'. So it still sounds like a legit use-case to me - to be able to |
I don't understand why a dataset's config file must not be commited after creating a fresh dataset in order to be able to call |
The main target for From the other side - we do not demand config being saved to be used, so there should be no penalty from no saving during create, or is there some side-effect? |
The side effect would be that Having run be able to capture command effects that alter a dataset's history seems like a worthwhile thing. But it is not a problem that is to be solved in each and every command, but in The general aspects of this issue could move to a dedicated issue for planning. |
spoken by a true revolutionist @mih
--- https://ru.wikipedia.org/wiki/Интернационал_(гимн)#Официальная_версия_гимна But I agree -- there should be a more generic way to reflect information that a series of commits correspond to a single run command. Thus #3265 |
In gh-3252, @mih says
I don't either. @yarikoptic, this is from your d3d6610 (ENH: --no-save flag for addurls (TODO: tests), 2018-03-14). Do you recall any reason why you wanted
create
to honor--nosave
?This PR stops propagating
--nosave
to create, and updatesaddurls
to userev-create
.