harmy / boar

Automatically exported from code.google.com/p/boar
0 stars 0 forks source link

Serve multiple repository with a single boar serve #96

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm currently evaluating boar to be used as an asset manager for my company's 
projects.
For the following reason, I will prefer to use one repository per project
instead of using boar sessions:
- Snapshot IDs are unique per repository, not per session.
- Ability to move old project repositories in another location

Currently, boar serve can't be used to serve a "repository root", like 
subversion server can do it. Each repository have to be served with a different 
instance of boar serve on a different port.

I have changed a bit the connect_tcp() function and serve command to let 'boar 
serve' act as a meta-server

Usage
# On server
mkdir root
mkdir root/projectA
mkdir root/projectB
boar serve --meta-repo root

# On client
boar --repo=boar://localhost:10001/projectA mksession Pictures
boar --repo=boar://localhost:10001/projectA import workdir/projectA/Pics 
Pictures
boar --repo=boar://localhost:10001/projectA mksession Movies
boar --repo=boar://localhost:10001/projectA import workdir/projectA/Vidz Movies

boar --repo=boar://localhost:10001/projectB mksession Pictures
boar --repo=boar://localhost:10001/projectA import workdir/projectB/Pics 
Pictures
# ...

Here is a clone of the boar sourcecode repository with my changes
http://hg.nore.fr/index.cgi/boar/

Branch tcpserver-metarepo
- '--meta-repo' option for boar serve
- allow subdirectories in --repo connection url
- use default port 10001 when not present in --repo connection url 
Branch default-locale
- fix for Mac OS X (Issue 85 http://code.google.com/p/boar/issues/detail?id=85)

Original issue reported on code.google.com by renaud.g...@gmail.com on 28 Feb 2013 at 7:46

GoogleCodeExporter commented 9 years ago
(oops, forgot to set the issue as 'ehancement' instead of 'defect')

Original comment by renaud.g...@gmail.com on 28 Feb 2013 at 7:49