Ohh that would be great ... we have branches/features/*, branches/releases/*, but also branches/next and also tags/releases/*, tags/internal-releases/*, tags/debian/* ... looking forward!
The problem is that once someone creates a branch branches/releases/foo, SubGit will try to translate a new branch as "branches/releases" but not as "branches/releases/foo". We're preparing a fix for that but it will be available some time later.
Igor, I've added support for that feature and there is an interim build for you to try. You should be able to access SG-11 now to get an interim build link. Thanks!
trunk = trunk:refs/heads/master
branches = branches/features/*:refs/heads/features/*
branches = branches/releases/*:refs/heads/releases/*
tags = tags/internal/*:refs/tags/internal/*
tags = tags/public/*:refs/tags/public/*
shelves = shelves/*:refs/shelves/*
But be careful because it does not support this kind:
trunk = trunk:refs/heads/master
branches = branches/*:refs/heads/*
branches = branches/releases/*:refs/heads/releases/*
tags = tags/*:refs/tags/*
shelves = shelves/*:refs/shelves/*
The problem is that once someone creates a branch branches/releases/foo, SubGit will try to translate a new branch as "branches/releases" but not as "branches/releases/foo". We're preparing a fix for that but it will be available some time later.
The following layout is also supported:
trunk = branches/next:refs/heads/master
branches = trunk:refs/heads/trunk
branches = branches/*:refs/heads/releases/*
tags = tags/*:refs/tags/*
shelves = shelves/*:refs/shelves/*
Note: This functionality is experimental, use it at your own risk. And your feedback is welcome as always.
Thanks!
But still I see
git clone /var/git/repo
Cloning into repo...
done.
warning: You appear to have cloned an empty repository.
git clone /var/git/repo
Cloning into repo...
done.
warning: You appear to have cloned an empty repository.
But how did you understand that all the revisions got translated?
Could you please send us your subgit.conf file?
The "empty" problem goes away when I rsync the repo to another location and back .. weird.
[core]
shared = true
logs = subgit/logs
errorReport = subgit/error
authorsFile = conf/authors.txt
[git "default"]
translationRoot = /
repository = /var/git/repo
pathEncoding = UTF-8
trunk = branches/next:refs/heads/master
branches = trunk:refs/heads/trunk
branches = branches/features/*:refs/heads/features/*
branches = branches/releases/*:refs/heads/releases/*
tags = tags/releases/*:refs/tags/*
shelves = shelves/*:refs/shelves/*
[daemon]
pidFile = subgit/daemon.pid
idleTimeout = 0
classpath = subgit/lib
javaOptions = -Djava.io.tmpdir=/tmp
[hooks]
javaOptions = -Djava.io.tmpdir=/tmp
I've just uploaded a new build which basically is SubGit 1.0.0 with support of multiple mappings.
The build's available at http://subgit.com/interim/SGT-434/
trunk = trunk:refs/heads/master
branches = branches/*:refs/heads/*
branches = branches/features/*:refs/heads/features/*
branches = branches/releases/*:refs/heads/releases/*
tags = tags/*:refs/tags/*
tags = tags/releases/*:refs/heads/tags/releases/*
shelves = shelves/*:refs/shelves/*
The build is available at http://subgit.com/interim/SGT-434/
Igor
This feature will be supported in the next minor update of the Stash plugin, see http://issues.tmatesoft.com/issue/SG-11
You should be able to access SG-11 now to get an interim build link. Thanks!