Jump to content

Possible improvement in name repositories


Carton Jeston

Recommended Posts

Hello,

In my plastic I have a project (a) and now I want to use a second repository (B) but I see that keeps them all together as Rep 1... 2... 3... 4...

Is there any way to separate them into subfolders or to adopt a different filename according to the repository name?

For example... A rep 1... A Rep 2... B rep 1... B Rep 2.

It could be an interesting option to have the database identified when problems arise.  ;-)

Link to comment
Share on other sites

Hi Carton,

you can create repositories like this:

c:\wkspaces\codice\01plastic\bin\client>cm mkrep core/area2

c:\wkspaces\codice\01plastic\bin\client>cm lrep --format="TABLE"
 1 default localhost:8787
 1_1 default/test localhost:8787
 3 core localhost:8787
 3_1 core/area1 localhost:8787
 3_2 core/area2 localhost:8787

And you will get the indented structure but you can't customize the root ids (1 and 3).

By using the subrepositories you will create databases inside databases giving you less root databases to manage (good for big corporations).

Link to comment
Share on other sites

I think what you're indicating is just what I'm looking for but I have a doubt. .

cm lrep --format="TABLE"

 11 MYPROGRAM localhost:8087
 13 MYGAME localhost:8087
 14 test localhost:8087
 14_1 test/x1 localhost:8087
 14_2 test/x2 localhost:8087

Is there any way to know which file uses the repository from the PlasticSCM IDE? Although the command is enough.

Thank you very much for your help, it is very useful.

 

 

 

 

Link to comment
Share on other sites

Not directly but you can determine it based on the repository id.

For the given example:

c:\wkspaces\codice\01plastic\bin\client>cm lrep --format=TABLE
 1 default localhost:8787
 4 code localhost:8787
 5 arn localhost:8787
 6 post localhost:8787
 4_1 code/kolz localhost:8787

The "code/kolz" repository will be located at: "$Jet_dbs_location\rep_4_1".

The "arn" repository will be located at "$Jet_dbs_location\rep_5".

Not sure this is what you wanted to know.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...