Skip to content
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

NF: Introduce always_commit option #143

Merged
merged 10 commits into from
May 6, 2015

Conversation

bpoldrack
Copy link
Member

As proposed herein, always_commit works as a mode of operation. Set to false to not instantly commit changes by git-annex calls.

Note: windows fails due to issue #147

@yarikoptic
Copy link
Member

are we becoming lazy? how would I know that it works? ;)

@bpoldrack
Copy link
Member Author

Haha - just wanted to know whether you agree on having the whole thing in always-commit-mode. May be you want to see it as an option for single commands only.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 82.1% when pulling a4bfeb2 on bpoldrack:enh-not-always-commit into 51d6968 on datalad:master.

@jgors
Copy link

jgors commented Apr 29, 2015

yarik: we can do one step at a time ;-) but tests would be relevant in any case ;-)

@coveralls
Copy link

Coverage Status

Coverage increased (+0.25%) to 82.37% when pulling 2be2c4d on bpoldrack:enh-not-always-commit into 51d6968 on datalad:master.

@bpoldrack bpoldrack changed the title RFC: Introduce always_commit option NF: Introduce always_commit option Apr 30, 2015
@@ -152,6 +156,14 @@ def _run_annex_command(self, annex_cmd, git_options=[], annex_options=[],
debug = ['--debug'] if lgr.getEffectiveLevel() <= logging.DEBUG else []
backend = ['--backend=%s' % backend] if backend else []

if git_options is None:
git_options = []
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git_options = git_options or [] could have worked as well ;-)

@coveralls
Copy link

Coverage Status

Coverage increased (+0.96%) to 83.08% when pulling 5e12a65 on bpoldrack:enh-not-always-commit into 51d6968 on datalad:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+1.02%) to 83.13% when pulling 23b0ef6 on bpoldrack:enh-not-always-commit into 51d6968 on datalad:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+1.02%) to 83.13% when pulling 0829b23 on bpoldrack:enh-not-always-commit into 51d6968 on datalad:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+1.02%) to 83.13% when pulling e7cc138 on bpoldrack:enh-not-always-commit into 51d6968 on datalad:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+1.02%) to 83.13% when pulling 6148831 on bpoldrack:enh-not-always-commit into 51d6968 on datalad:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.96%) to 83.08% when pulling 880aead on bpoldrack:enh-not-always-commit into 51d6968 on datalad:master.

@@ -152,6 +156,12 @@ def _run_annex_command(self, annex_cmd, git_options=[], annex_options=[],
debug = ['--debug'] if lgr.getEffectiveLevel() <= logging.DEBUG else []
backend = ['--backend=%s' % backend] if backend else []

git_options = git_options[:] if git_options else []
annex_options = annex_options[:] if annex_options else []
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

theoretically it wasn't needed here, since we didn't modify it, right? (but ok to leave in -- just trying to see if I am not missing anything)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah -- [:] wasn't needed what I meant... anyways -- ignore ;) better be safe than sorry

yarikoptic added a commit that referenced this pull request May 6, 2015
@yarikoptic yarikoptic merged commit 3138d87 into datalad:master May 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants