Ruslan Kuprieiev
1a7eb8fdec
Merge pull request #3222 from skshetry/fallback-external-repo
...
api: fallback to external_repo if not a DVC repository
2020-01-23 13:24:33 +02:00
Ruslan Kuprieiev
a0419173ba
Merge pull request #3088 from efiop/3080
...
dvc: add sanity checks for hard/symlinks
2020-01-23 11:48:19 +02:00
Saugat Pachhai
2e0b143856
api: use current directory for repo if not specified
2020-01-23 15:28:22 +05:45
Saugat Pachhai
003b5c392a
api: fallback to external_repo on error
2020-01-23 14:44:38 +05:45
Ruslan Kuprieiev
f6f931be87
hooks: checkout: fix incorrect dvc repo detection
...
When running from non-root directory `git ls-files .dvc` will treat it
as a relative path to the current location, so if you run `git checkout`
from a directory that is not a git/dvc root, our hook will think that
it is being run in a non-dvc repo and will do nothing. To fix that, need
to use `--full-name` flag.
2020-01-23 10:21:26 +02:00
Jorge Orpinel
69c1aa5bbf
dvc: revert capitalization of logger.exception strings
...
per https://github.com/iterative/dvc/pull/3220#pullrequestreview-347083819
2020-01-23 00:50:24 -06:00
Jorge Orpinel
6364c9ee62
get: refine --show-url description
...
per https://github.com/iterative/dvc/pull/3220#pullrequestreview-347038086
2020-01-23 00:39:10 -06:00
Jorge Orpinel
d06bd6abd8
tests: match recent commits and
...
other misc. language improvements
2020-01-23 00:35:15 -06:00
Jorge Orpinel
ec0c39a28e
term: review capitalization and backquotes around "dvc"
...
rel: https://github.com/iterative/dvc/pull/3156#discussion_r369897073
2020-01-22 20:27:01 -06:00
Jorge Orpinel
ee0193ccd3
get: rewrite --show-url description
...
per https://github.com/iterative/dvc.org/pull/936#discussion_r368680473
2020-01-22 20:12:19 -06:00
Jorge Orpinel
ae3455141c
get: language feedback on --show-url PR
...
per https://github.com/iterative/dvc/pull/3156#pullrequestreview-345562608
2020-01-22 19:47:57 -06:00
Jorge Orpinel
6e61236fb7
get/imp: update help output descriptions
...
per https://github.com/iterative/dvc/issues/3196#issuecomment-577306219
2020-01-22 12:00:06 -06:00
Ruslan Kuprieiev
d863c46859
dvc: add sanity checks for hard/symlinks
...
Fixed #3080
2020-01-22 18:47:37 +02:00
Ruslan Kuprieiev
b99c5e4aad
Merge pull request #3211 from skshetry/fix-brancher-noscm
...
brancher: do not get tree if there's no revs
2020-01-22 14:09:53 +02:00
Saugat Pachhai
5f8b1f7f80
brancher: do not get tree if there's no revs
2020-01-22 17:22:54 +05:45
Paweł Redzyński
482dfaf998
data cloud: refactor verify checksums test
2020-01-22 10:54:07 +01:00
pawel
e36cc8c9d2
data cloud: add explanaiton to pulled checksums save
2020-01-22 10:54:07 +01:00
pawel
a148d16a95
data cloud: verify is config option now
2020-01-22 10:54:07 +01:00
pawel
b451de5496
remote: tests: refactor verify test
2020-01-22 10:54:07 +01:00
pawel
0b1d1f5ce4
data cloud: pull: trust remotes md5 on proper flag
2020-01-22 10:54:07 +01:00
Ruslan Kuprieiev
6958901d98
Merge pull request #3204 from efiop/3087
...
erepo: fix DependencyREPO schema
2020-01-21 15:31:22 +02:00
Ruslan Kuprieiev
7c9e0345a0
Merge pull request #3205 from skshetry/fix-spell
...
exception: fix spelling
2020-01-21 13:56:59 +02:00
Saugat Pachhai
df1ba08b94
exception: fix spelling
2020-01-21 17:24:21 +05:45
Ruslan Kuprieiev
2305549460
erepo: fix DependencyREPO schema
...
URL should be required and rev or rev_lock should be optional.
Related to #3087
2020-01-21 12:58:33 +02:00
Ruslan Kuprieiev
04161ad6f2
dvc: bump to 0.82.1
2020-01-21 00:41:45 +02:00
Ruslan Kuprieiev
503401dde5
Merge pull request #3202 from efiop/flatten
...
dvc: replace flatten_dict with flatten_json
2020-01-21 00:38:19 +02:00
Ruslan Kuprieiev
1eb82ac707
dvc: replace flatten_dict with flatten_json
...
flatten_json has a conda package, while flatten_dict doesn't and I'm not
willing to maintain yet another conda package :)
2020-01-21 00:14:22 +02:00
Ruslan Kuprieiev
e848bcb9d6
gdrive: allow configuring no_traverse
2020-01-20 23:49:49 +02:00
Saugat Pachhai
8dd2dbb46e
py2: remove use of six
2020-01-20 21:47:56 +05:45
Ruslan Kuprieiev
b2b3587c0b
Merge pull request #3190 from Suor/refactor-erepo
...
external: refactor external_repo() and its users
2020-01-20 14:49:36 +02:00
Ruslan Kuprieiev
430b9bbdc0
dvc: bump to 0.82.0
2020-01-19 20:04:41 +02:00
Alexander Schepanovski
72812b519e
api: fix get_url() non-dvc repo error message
2020-01-19 23:01:53 +07:00
Alexander Schepanovski
eb97e0b393
external: do not fail with no remote if cache is available
2020-01-19 21:39:32 +07:00
Alexander Schepanovski
9de0643d97
api: allow rev on local repos
2020-01-19 21:38:30 +07:00
Alexander Schepanovski
033ef88a4e
external: refactor external_repo() and its users
...
Some things are fixed along the way:
- no cache shared between incompatible funcs
- some incosistent exceptions are now consistent
- import updates for git files now works both for dvc and git repos
- "auto-generated-upstream already exists" fixed
- dvc.api.open()/read() works with git repos now
Fixes #3124 , #2976 . Closes #3172 .
2020-01-19 21:38:06 +07:00
Ruslan Kuprieiev
19acded31f
logger: utils: fs: use lazy formatting
2020-01-19 11:53:29 +02:00
Ruslan Kuprieiev
65c0c7e60d
logger: state: use lazy formatting
2020-01-19 11:53:29 +02:00
Ruslan Kuprieiev
c2dae4b49c
logger: remote: use lazy formatting
...
Part of #1843
As our previous investigations showed, path stringification and stuff
like relpath are taking a very large chunk of time when working with
giant directories. This patch removes `format()`s and uses lazy
formatting provided by logger instead, so stuff like path_info is not
stringified until actually needed (e.g. on `-v`).
2020-01-19 11:53:29 +02:00
Ruslan Kuprieiev
6f8ac0c1b1
logger: support {} formatting
2020-01-19 11:53:29 +02:00
Ruslan Kuprieiev
3987086275
Merge pull request #3169 from fabiosantoscode/feature/2963-dvc-pull-of-s3-remote-with-https-url
...
pull: treat HTTP redirects without Location header as error
2020-01-19 10:00:05 +02:00
Ruslan Kuprieiev
74c5af1a84
Merge pull request #3130 from jorgeorpinel/master
...
api: better code documentation
2020-01-19 09:05:52 +02:00
Ruslan Kuprieiev
cf013576d4
Merge pull request #3120 from sharidas/no_remote_issue
...
Fix import issue without remote config in the target
2020-01-19 09:03:38 +02:00
Sujith H
1b7eda2745
Fix import issue without remote config in the target
...
Fix the import issue when target does not have
remote config.
Signed-off-by: Sujith H <[email protected] >
2020-01-19 11:42:05 +05:30
Mr. Outis
de1de68f90
s3: import boto3 inside _copy instead of module level
...
Kudos to @skshetry for bringing this out during a review
2020-01-18 23:01:50 -06:00
Jorge Orpinel
2b818e203f
api: note get_url doesn't chekc file existence
...
per https://github.com/iterative/dvc/pull/3130#discussion_r367359439
2020-01-17 17:40:02 -06:00
Jorge Orpinel
4d05ad2789
Merge branch 'master' of github.com:iterative/dvc
2020-01-17 17:39:51 -06:00
Restyled.io
c3628c87d5
Restyled by black
2020-01-17 18:00:19 +00:00
Andy Sarroff
0bd433d153
s3: copy large objects without chunking
...
When executing `boto3.s3.Client.Copy`, large files are chunked into
multiple parts. The default chunk threshold and size is 8MB. This
caused an issue when caching an object larger than 8M, where the
original object had not been uploaded in multiple parts. The original
object and the cached object would have different ETags, causing an
exception. This fixes the issue by dynamically setting the chunk
threshold to be one byte larger than the size of the original object
therefore avoiding multipart copies.
Fixes #3174
2020-01-17 12:00:42 -05:00
Paweł Redzyński
34d3261e58
utils: resolve_output: normpath before extracting basename
2020-01-17 09:29:52 +01:00
Ruslan Kuprieiev
bdd1d61803
Merge pull request #3156 from skshetry/get-url-from-cache
...
get: implement --show-url to display only url/path to remote
2020-01-17 10:15:06 +02:00