bzr-upload ignoring the bzrignore-upload file

Asked by Patrick Goddard

I'm not really sure what I'm doing wrong, but I have a .bzrignore-upload file set to ignore certain certain directories (that a) have symlinks and b) don't want uploaded), however when I run bzr upload whatever, it uploads everything. What am I doing wrong? I have the same syntax as in the .bzrignore file for a directory.

Is there a new bug I am unaware of and/or do you mind stating and example of the syntax for a directory?

Simple as:

files

no?

Thanks for your help.

Question information

Language:
English Edit question
Status:
Answered
For:
bzr Upload plugin Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Martin Pool (mbp) said :
#1

On 20 August 2010 08:05, Patrick Goddard
<email address hidden> wrote:
> New question #121912 on bzr Upload plugin:
> https://answers.launchpad.net/bzr-upload/+question/121912
>
> I'm not really sure what I'm doing wrong, but I have a .bzrignore-upload file set to ignore certain certain directories (that a) have symlinks and b) don't want uploaded), however when I run bzr upload whatever, it uploads everything.  What am I doing wrong?  I have the same syntax as in the .bzrignore file for a directory.
>
> Is there a new bug I am unaware of and/or do you mind stating and example of the syntax for a directory?

That seems correct to me. One trick is that, looking at the code,
bzr-upload seems to use the last committed version of the
.bzrignore-upload file, so you do have to add and commit it.

--
Martin

Revision history for this message
mike stewart (mdrmike) said :
#2

I seem to be encountering this too. will do some more debugging to figure out what exactly is happening.

Pat - you might be interested in bzr view

bazaar views have some nice uses in a Drupal multisite development workflow.

related post on using a view: https://answers.launchpad.net/bugs/530373

Revision history for this message
Vincent Ladeuil (vila) said :
#3

Try issuing 'bzr ls --versioned' and make sure '.bzrignore-upload' appears there.

Revision history for this message
Patrick Goddard (thund3rbox) said :
#4

Will check these out.

I finally got bzr upload to work, but only if I initialized files, created ignore file, created upload ignore file, THEN added and committed files. I also did some testing with revid, and uploading the initial files via ftp outside of bzr. In any case, whatever I did is working now.

Revision history for this message
Vincent Ladeuil (vila) said :
#5

> created upload ignore file, THEN added and committed files.

That's the important part. Until .bzrignore-upload is *committed*, it won't be taken into account.

The reason is that you can change which files are ignored from one revision to the other.

Can you help with this problem?

Provide an answer of your own, or ask Patrick Goddard for more information if necessary.

To post a message you must log in.