Uploading part of the tree

Asked by Panos Laganakos

In my web projects structure, I divide, code, design and docs

myproject/
    src/
    design/
    docs/

And I only need to publish the 'src' dir. How can I define that?

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 Albisetti (beuno) said :
#1

Since bzr works tree-wide, you would have to have src/ in a separate branch.

I'm wondering if this would be a good case to have bzr upload-ignore

Vincent?

Revision history for this message
Martin Albisetti (beuno) said :
#2

Just subscribed us so we can get notified in the future.

Vila ^

Revision history for this message
Martin Pool (mbp) said :
#3

Yes, it seems like this should be a feature request for bzr-upload. Alternatively maybe you could just configure your server to only publish /src/

Revision history for this message
Panos Laganakos (panosl) said :
#4

It only publishes `src/`, 'cause in this particular situation, it's called through mod_python, and the rest ain't in the public dir structure.

Still a way to specify the only dir to upload, would be handy - cleaner. Should I open a ticket on it, like Martin suggested for `bzr upload-ignore`?

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

Having a bzr upload-ignore doesn't seem to fit the plugin model, it will require overriding or duplicate some bzr commands or features.

A better long-term solution will be to use a nested tree once the feature is available in bzr.

Can you help with this problem?

Provide an answer of your own, or ask Panos Laganakos for more information if necessary.

To post a message you must log in.