Commit Graph

24 Commits

Author SHA1 Message Date
b035757d3b Fix: fail to move lib blend files to the destination dir when mode=FILE 2017-01-17 17:02:05 +01:00
94253975ca Cleaner way to use os.makedirs()
It's not necessary to do an os.path.exists(dst_dir) check before calling
os.makedirs(), the exist_ok=True parameter is meant for this common
pattern.
2017-01-17 17:01:37 +01:00
9e8f95114c Added some type annotations 2017-01-17 17:00:49 +01:00
e4e94f077f Fixed bad import 2017-01-17 17:00:40 +01:00
5e5a9e37f1 Report fp_blend with %r formatting, just like all other reported paths. 2017-01-17 16:07:48 +01:00
89fe6be951 Fix (unreported) temp dir not being removed by bam pack -m FILE. 2016-12-14 14:18:17 +01:00
b75b744032 Fix T50244: bam pack with -m FILE fails on copying deeper hierachies because of missing destination folders.
As suggested by reporter, check for existing dst dir and use os.makedirs
first if missing.
2016-12-14 14:16:04 +01:00
127843e648 Extend 'pack' feature by adding option to keep repo's hierarchy, and warn about external deps.
`bam_cli.py pack` command now takes two more (optional) parameters, one
to specify the base directory of the repository, and one to enable
warnings when 'external' dependencies (to given base dir) are found.

Note that by default, base directory is the directory of the packed
.blend file (such that default behavior does not change at all).

See CLI help for more.
2016-11-28 10:47:31 +01:00
b8a59e504b Fix packing windows paths that span drives
Reported as T48187
2016-07-26 07:09:39 +10:00
5f5baf33b2 Minor changes
- use functions instead of lambda
- dont use color for non-terminal tty's
- add --temp argument for blendfile_pack
2016-01-29 17:47:57 +11:00
e41a17735e Change pack --exclude behavior, don't touch excluded paths at all
Was omitting from zip, but still remapping.
2015-06-11 21:11:04 +10:00
0aa730089b pack, support --exclude argument
See: bam pack --help
2015-06-04 14:55:40 +10:00
7169a3d713 no longer make copies of files
When the server is performing a checkout, we only need to make binary edit-list
2015-02-20 15:51:46 +11:00
e76691f18b support for partial downloads
(use local cache where possible)
2015-02-20 15:51:10 +11:00
535886c915 add revert
uses local cache and replays binary edits
2015-02-07 00:53:20 +11:00
98f67c5d7f test local replay of edits, needed for local cache 2015-01-28 20:29:29 +11:00
3c2a4beec9 Fix for pack failing with missing files 2015-01-14 23:46:12 +11:00
b16801dd6c Initial Variation support
See: T42930

Also added tests
2015-01-09 05:21:14 +11:00
1ed725876a cleanup 2014-12-20 01:59:07 +01:00
7aaf6a64e8 fix for rare case when a file path points to a directory 2014-12-20 01:53:19 +01:00
975a0a5f49 Don't compress common filetypes which are already compressed 2014-12-20 01:53:14 +01:00
f8438d9419 bam cli: add compression level support 2014-12-19 17:29:51 +01:00
fc5a206686 Sanitize paths before packing
also use mode as a kw arg
2014-12-19 11:33:08 +01:00
871600312c re-arrange modules, preparing for python-package-index 2014-12-19 11:33:05 +01:00