lp:~vila/bzr-upload/499525-ignore
- Get this branch:
- bzr branch lp:~vila/bzr-upload/499525-ignore
Branch merges
- Martin Albisetti (community): Approve
-
Diff: 327 lines (+165/-38)3 files modifiedNEWS (+5/-0)
__init__.py (+65/-30)
tests/test_upload.py (+95/-8)
Branch information
Recent revisions
- 73. By Vincent Ladeuil
-
Cleanup.
* __init__.py:
(BzrUploader.upload_ file, BzrUploader. make_remote_ dir,
BzrUploader.delete_ remote_ file, BzrUploader. delete_ remote_ dir):
Remove useless handling of is_ignored(), higher levels take care
of that. - 72. By Vincent Ladeuil
-
Handle regexps in .bzrignore-upload and take parents into account.
* tests/test_
upload. py:
(UploadUtilsMixin._get_ cmd_upload) : The hell with bzrlib
regressions, just use sys.stdout.
(TestUploadMixin.test_ ignore_ regexp) : Ensure regexps are handled.
(TestUploadMixin.test_ ignore_ change_ file_into_ dir,
TestUploadMixin.test_ignore_ change_ dir_into_ file,
TestUploadMixin.test_ignore_ delete_ dir_in_ subdir,
TestIncrementalUpload. test_ignore_ delete_ one_file) : More ignore tests. * __init__.py:
(BzrUploader._get_ignored, BzrUploader. is_ignored) : Handle regexps
and ensure no parents are ignored.
(BzrUploader.upload_ file, BzrUploader. make_remote_ dir,
BzrUploader.delete_ remote_ dir, BzrUploader. delete_ remote_ file):
Use is_ignored.
(BzrUploader.upload_ full_tree, BzrUploader. upload_ tree): Use
is_ignored. - 71. By Martin Albisetti
-
Write a test that verifies that nested files in ignored dirs dont get uploaded
- 68. By Vincent Ladeuil
-
Cleanup some pending changes.
* tests/test_
upload. py:
Fix imports.
(TestUploadFromRemoteBranch. setUp): Refactor some setup common to
all tests.* __init__.py:
(CannotUploadToWorkingTree) : Renamed from
CannotUploadToWorkingTreeError , no need to prefix with error, we
know that.
(DivergedUploadedTree) : Replace DIvergedError.
(cmd_upload.run): Simplify locking. - 67. By Martin Albisetti
-
Allow ignoring files and directories for upload with a .bzrupload-ignore file (Martin Albisetti)
- 65. By Vincent Ladeuil
-
Fix spurious failures.
* tests/test_
upload. py:
(get_transport_scenarios) : Better ftp/sftp selection.
(TestUploadFromRemoteBranch. make_remote_ branch_ without_ working_ tree):
Skip some tests that escape isolation until I can find a better
way. - 64. By Vincent Ladeuil
-
Fix compatibility with bzr.
* __init__.py:
(_get_branch_ bool_option) : Ensure compatibility with earlier bzr
versions, at least for now.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:bzr-upload