Paweł Redzyński
44b7216861
some doc link fixes
2020-01-24 11:57:17 +01: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
Mr. Outis
fd82402d34
py3: use new magic from PEP 3135
2020-01-02 16:24:31 -06:00
Mr. Outis
94a0914bba
py3: get rid of future imports
2019-12-30 19:35:48 -06:00
Mayur Kularni
a1ae3578c0
Fix caplog test case and move call to CmdRemoteAdd
2019-12-10 11:49:19 +05:30
Kaio Giurizatto Utsch
82a535b97e
Change logging to print
...
Python logging recommends using print instead of logging for ordinary
output of command line program.
Also changed the test to reflect this.
2019-11-26 15:02:03 -03:00
Kaio Utsch
142eb47557
remote: fix default --unset break of last commit
2019-11-20 10:29:10 +00:00
Kaio Utsch
67ceed0d25
remote: fix remote default call with no arguments
...
remote default command with no arguments now returns default remote instead of
setting default remote to None.
Fixes #2813
2019-11-20 09:21:41 +00:00
Ruslan Kuprieiev
95fe1578bb
dvc: automatically reorder imports
2019-11-05 02:34:40 +02:00
Ivan Shcheklein
6ae13b5795
cli: update man links to the new scheme
2019-08-09 17:54:26 -07:00
Jorge Orpinel
79b22fc776
help: fixed -h output for diff and remote subcommands
...
Fix #2169
2019-06-26 14:05:18 -05:00
pawel
5ed6123101
config: rename RemoteConfig and CacheConfig variables in CmdRemoteConfig and CmdCacheDir class
2019-06-12 10:58:30 +02:00
Ruslan Kuprieiev
8ef9133194
remote: use RemoteConfig class
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-06-06 16:00:44 +03:00
Ruslan Kuprieiev
9e9e078de3
config: move logic from CLI to API
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-06-06 14:41:02 +03:00
Mr. Outis
d355b1e66e
config: allow cross-referenced remotes
...
Close #1614
2019-04-08 22:10:03 -05:00
Mr. Outis
921b39dbfe
tests: use pytest caplog instead of custom mock
...
Close #1753
2019-04-06 20:35:30 -06:00
Mr. Outis
85cd344152
logger: Use a more _pythonic_ logging
...
- Uses a formatter for coloring output
- Move the `progress_aware` decorator logic to the logger itself
- Refactor modules so each one uses their own instance of a logger
Close #1753
2019-04-06 18:19:32 -06:00
Dmitrii Pukhov
67f4c9329e
Fix unnecessary raise, ConfirmRemoveError recover
2019-03-30 21:38:47 +09:00
Dmitrii Pukhov
06052a8f6a
cli: fix overwriting remotes in dvc remote add
...
Now dvc remote add requires user confirmation in case of overwriting of
an already existing remote.
Fixes #1760
2019-03-30 14:48:07 +09:00
Ivan Shcheklein
4a9188c0b5
Move man doc links to descriptions, fix some help copies ( #1805 )
...
* move man doc links to descriptions, fix some help copies
* minor init force message fix
* deal with ugly inheritance in lock base
* remove unnecessary super calls
* add return back to python lock/unlock run functions
2019-03-29 03:56:41 +02:00
Lee Yi Jie Joel
2ba657c77a
Add links to documentation for all commands ( #1767 )
2019-03-22 20:32:06 +02:00
Ruslan Kuprieiev
0f024a9655
dvc: optimize imports
...
Currently `dvc` takes ~0.7sec to finish. After this patch: 0.17sec.
Profiling has been done using:
python -X importtime -m dvc 2> log.log
tuna log.log
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-02-16 07:45:03 +02:00
Ruslan Kuprieiev
ba8d83e9b1
dvc: refactor dvc project class
...
1) split Project's methods into separate files;
2) rename Project into Repo(similar to gitpython's Repo)
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-02-13 03:31:23 +02:00
Ruslan Kuprieiev
4896f08ddf
dvc: comply with both flake8 and black
...
flake8 provides some additional features like unused vars check, etc, so
it makes total sense to use it as well.
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-02-04 00:10:36 +02:00
Ruslan Kuprieiev
4069e34130
dvc: use black instead of flake8
...
Fixes #1546
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-01-30 03:48:36 +02:00
Mr. Outis
0d46921ec7
py2: add unicode literals
...
Fix #1512
2019-01-27 20:40:21 -06:00
Ruslan Kuprieiev
6fec8b16cd
RFC: conform to pylint
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-01-16 14:12:19 +02:00
Ruslan Kuprieiev
484f318c27
remote: local: support relative paths
...
Fixes #1421
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-01-04 21:14:03 +02:00
Mr. Outis
4c420d5f4d
logger [rfc]: Use a module instead of a class
...
- Remove deprecation warnings
- Format error output and remove duplicated info
Close #1086
2018-12-23 21:06:39 -06:00
Ruslan Kuprieiev
ed3030707f
cli: add dvc remote default command
...
Fixes #1357
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-12-12 19:21:34 +02:00
Ruslan Kuprieiev
e02a33f934
logger: shortcut logger in quiet and normal modes
...
In scenarios with millions of files, late shorcutting of
debug msgs results in massive overhead. In order to avoid
that, just shortcut logger messages ASAP if verbose mode
is not enabled.
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-12-11 12:07:28 +02:00
Ruslan Kuprieiev
c02fe1313f
config: support 'global' and 'system' configs
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-12-01 02:31:14 +02:00
Ruslan Kuprieiev
249b60c030
remote: properly remove remote section
...
Fixes #1075
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-08-31 04:07:31 +03:00
Ruslan Kuprieiev
0e9774a3f8
RFC: follow flake8 rules
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-07-25 17:28:58 +03:00
Ruslan Kuprieiev
56ed60f1cd
dvc: add -d|--default option for dvc remote add
...
Fixes #783
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-06-17 08:11:07 +03:00
Ruslan Kuprieiev
6156b7e1b1
dvc: introduce 'dvc remote list'
...
Fixes #690
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-05-05 14:17:35 +03:00
Ruslan Kuprieiev
1ad63d1ba6
dvc: add dvc remote modify command
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-04-07 01:21:05 +03:00
Ruslan Kuprieiev
b652d00fd9
cli: add 'dvc remote {add|remove}'
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-04-05 21:31:20 +03:00