Skip to content

Summer cleanup#40

Merged
tony merged 23 commits into
masterfrom
cleanup-summer-2016
Jun 19, 2016
Merged

Summer cleanup#40
tony merged 23 commits into
masterfrom
cleanup-summer-2016

Conversation

@tony
Copy link
Copy Markdown
Member

@tony tony commented Jun 19, 2016

Big clean up of unused functionality, functions, documentation.

Consolidation of Base.run method, util.run functions as well as docs to make the behavior (hopefully) more clear and consistent.

New Base.run_buffered to make it clear a subprocess will pass-thru buffered output as a normal CLI command would.

tony added 11 commits June 19, 2016 04:47
- Use try/except for non-zero return codes in Base.run, util.run
- This and earlier commits, assure signature and return of Base.run,
  util.run is the same
- Remove add dummy file in svn test
- Don't stream_stderr by default, most run calls didn't use it, so make
  it opt-in
- Don't log_stdout by default, most run calls didn't use it, same as
  above
Improve get_revision behavior to handle initial repos

Add Base.run_buffered which buffers straight to stdout, for
functions where we don't want to record stdout, such as git
pull, hg/git clone, etc. Only front-end cli usage cares about
buffering to stdout.

todo: for API only usage such as https://github.com/jcfr/pys4ext
it should be quiet.

Base.run is for directly checking output responses
Logging/running commands can be very ambiguous/confusing. Lets keep
things clear as possible while working on this, we can relax the
length of kwarg variable name print_stdout_on_progress_end before release.
@tony tony added this to the 1.0 milestone Jun 19, 2016
@tony tony self-assigned this Jun 19, 2016
@codecov-io
Copy link
Copy Markdown

codecov-io commented Jun 19, 2016

Current coverage is 67.67%

Merging #40 into master will increase coverage by 0.25%

@@             master        #40   diff @@
==========================================
  Files             9          9          
  Lines           755        727    -28   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
- Hits            509        492    -17   
+ Misses          246        235    -11   
  Partials          0          0          

Powered by Codecov. Last updated by c147346...3f22d8d

The long method name is temporary.  Currently, the url attribute
on VCS classes is the  pip-style url and not the raw URL a repo
would use.

This leads to confusion and ambiguity since the pip-url is really
only important from a front-end perspective. After the true url
and rev is resolved, there is no need for it in the instance.
@tony tony mentioned this pull request Jun 19, 2016
1 task
@tony tony merged commit ae74a78 into master Jun 19, 2016
@tony tony deleted the cleanup-summer-2016 branch June 19, 2016 14:28
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.

2 participants