Option to Not Upload Certain Files

Asked by Ian Barton on 2009-01-08

This is similar to the Uploading Part of the Tree Question. My site contains some files which I don't want to upload, but which I do want to keep under version control. An example would be the config.php file, which contains server specific information. This is obviously different for my laptop and the production server, so I don't want to upload it.

This file is in a directory containing other files which I do want to upload, so I can't create a separate brnach. Short of removing config.php from version control is there any way to tell bzr-upload to ignore it?

Ian.

Question information

Language:
English Edit question
Status:
Solved
For:
bzr Upload plugin Edit question
Assignee:
No assignee Edit question
Solved by:
Ian Barton
Solved:
2009-01-09
Last query:
2009-01-09
Last reply:
2009-01-08
James Westby (james-w) said : #1

On Thu, 2009-01-08 at 10:23 +0000, Ian Barton wrote:
> New question #56724 on bzr Upload plugin:
> https://answers.launchpad.net/bzr-upload/+question/56724
>
> This is similar to the Uploading Part of the Tree Question. My site contains some files which I don't want to upload, but which I do want to keep under version control. An example would be the config.php file, which contains server specific information. This is obviously different for my laptop and the production server, so I don't want to upload it.
>
> This file is in a directory containing other files which I do want to upload, so I can't create a separate brnach. Short of removing config.php from version control is there any way to tell bzr-upload to ignore it?

Not as far as I know.

Once the rules support is in bzr core then I imagine this would be easy
to add.

Thanks,

James

Martin Albisetti (beuno) said : #2

We don't have this today, but this is a feature I've been wanting for some time now (some sort of .bzrignore-upload). It's very common to have files versioned that you don't want uploaded in the web dev world.

Ian Barton (ian-manor-farm) said : #3

Thanks some sort of .bzrignore-upload would be very useful. For the moment I think I can work round the problem with some horrible php hacks to get the server data in my files, so I don't need to hardcode server info.

Ian.

Vincent Ladeuil (vila) said : #4

.bzrignore-upload is now supported, get a recent version of the plugin and enjoy.