Subdirectories in +junk

Asked by Diederick Niehorster

Dear developers/experienced users,

I am looking to do some organization of my +junk folder, I'm a self-professed deepnester who likes to have a clear directory structure.
However, i'm not sure how to make subdirectories in the +junk folder in which i could then put my branch.
For instance, the following doesn't work:

C:\[...]>bzr push bzr+ssh://<email address hidden>/~dcnie/+
junk/tools/glass_heading
Connected (version 2.0, client Twisted)
Authentication (publickey) successful!
Secsh channel 1 opened.
bzr: ERROR: Could not understand response from smart server: ('error', 'Permissi
on denied: "Cannot create \'glass_heading\'. Only Bazaar branches are allowed."'
)

Could you tell me how to do this, or is it not possible?

Thanks,
Diederick

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Tim Penhey
Solved:
Last query:
Last reply:
Revision history for this message
Diederick Niehorster (dcnie) said :
#1

I have now tried to push the following:
in the repository on my HD, i created a branch tools. In tools i created two branches: glhead and tex. Added and committed files in those branches (when trying that on the tools branch, it appears empty to bazaar, add thus does nothing and commit tells me there are no changes to commit --- i guess that's a good sign as its just an empty holder). I am able to push tools without error. However, in code, it is also noted that tools is empty: "This branch is empty."
I suppose this strategy thus does not work also.

Do i have to use a different repository format (can find little info on that) and in that case, how do i covert my launchpad repository?

Thank you for any further suggestions!

Revision history for this message
Christian Reis (kiko) said :
#2

I believe this actually isn't possible. +junk branches are meant to be
standalone, and I don't think we ever considered creating directories
for them without implying they are actual projects. Maybe that's wrong,
though -- can you tell me more about your use case?
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3376 0125

Revision history for this message
Diederick Niehorster (dcnie) said :
#3

Dear Christian,

I'm a student in the field of vision research. This is a field in which we often use experiments programmed up in MATLAB or C(++).

I intend to use the +junk repository to centrally host development files of different kinds for two reasons:
- I work on them on different computers
- I need an easy platform to share my codebase with colleagues and possibly mention them as additional resources in papers so others not part of my research group can access them.

Files/projects come in three kinds:
- Development branches of different codebases. We have a couple of (generalized) codebases we adapt to fit the needs of a specific project/experiment
- These branched off versions of the general codebase for a specific project/experiment
- Other, general files, such as latex bibliography and style file

The files I would like to host are thus free to use for others and would be of use to others. However, I would like to host my branches in three different subdirectories of +junk corresponding to the categories mentioned above. I think that would fit this kind of files better than to put them in projects (as registered with Launchpad).

As you might have surmised from my posts above, I am a beginning bzr user and bzr is the first VCS that I use. It seems bzr on my local HD has no problem with a repository\subdir\branch layout. I could of course throw everything in a single branch, but that would mean that version is shared by all these separate subdirs.

For me, it would be useful to structure my +junk repository by means of directories, and I think other users could benefit from this possibility also.

I hope you have a way or a suggestion on how to make this possible.

Thank you,
Diederick

Revision history for this message
Christian Reis (kiko) said :
#4

Okay. So the short answer is that it's currently not possible to do so, and the easiest workaround is to prefix the branch name with something (for instance, "foo-"). I realize that's suboptimal but it's what you can do. I'll also leave the floor now and allow Tim P. to consider whether this is something that we could change.

Revision history for this message
Diederick Niehorster (dcnie) said :
#5

Thank you for your suggestion, I'll work with that for now. I hope that it will be possible in the future, even if you won't have possibly as amny braches as me, a clean structure provides for a clear mind. Thank you for your consideration.

Revision history for this message
Best Tim Penhey (thumper) said :
#6

Hi Diederick,

I think you have a slight misunderstanding on what is offered with the Launchpad code-hosting. The +junk area is for branches that have no associated project (as you have realised), but it is not a repository, it is just a way to say that this branch has no project.

As such, there is no concept of directories.

Branches are identified by their three part name: the owner of the branch; the project (or +junk); and the branch name.

In order to provide grouping for your branches, I'd suggest using a prefix for your branch names, or associate the branches with their appropriate project.

Revision history for this message
Diederick Niehorster (dcnie) said :
#7

Thanks Tim Penhey, that solved my question.