Guest?
 
  • Showing issue #? of ? found
Back to Search
Project
SubGit
Priority
Normal
Type
Feature
State
Fixed
Assignee
Semyon Vadishev
Subsystem
Translator Core
Affected versions
No Affected versions
Fix versions
1.1
Fixed in build
No Fixed in build
  • Created by   Semyon Vadishev
    14 months ago (05 Mar 2012 18:08)
  • Updated by   Alexander Kitaev
    2 months ago (14 Mar 2013 17:13)
1
Issue is visible to: All Users
  The issue is visible to the selected user group only
Support the following config notation:

[git "default"]
trunk = trunk:refs/heads/master
branches = branches/*:refs/heads/*
branches = branches/dev/user1/*:refs/heads/dev/user1/*
branches = branches/dev/user2/*:refs/heads/dev/user2/*
branches = branches/branches/release/*:refs/heads/releases/*
tags = tags/*:refs/tags/*
tags = tags/internal/*:refs/tags/internal/*
tags = tags/public/*:refs/tags/public/*
shelves = shelves/*:refs/shelves/*

We can actually support the following layout:
branches = branches/dev/*/*:refs/heads/dev/*/*

Consider what happens during Git to Svn translation.
Comments (12)
 
History
 
Linked Issues (?)
 
guest
  guest
09 Mar 2012 14:15
14 months ago
+1
eric
  eric
12 Mar 2012 12:47
14 months ago
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!
Semyon Vadishev
  Semyon Vadishev
26 Jun 2012 19:04
10 months ago
I've prepared an interim build http://subgit.com/interim/SGT-434 which supports this kind of layouts:

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!
eric
  eric
27 Jun 2012 22:44
10 months ago
Semen, this seems to work perfectly! Every branch has a full history that goes back to cvs2svn :-)

But still I see

git clone /var/git/repo
Cloning into repo...
done.
warning: You appear to have cloned an empty repository.
Semyon Vadishev
  Semyon Vadishev
29 Jun 2012 00:26
10 months ago
But still I see

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?
eric
  eric
29 Jun 2012 00:37
10 months ago
I check various branches .. and they all looked good.

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
Semyon Vadishev
  Semyon Vadishev
27 Sep 2012 00:57
7 months ago
Hello there,

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/
Semyon Vadishev
  Semyon Vadishev
07 Nov 2012 17:27
6 months ago
We have published SubGit 1.1.0 EAP build #1810 that fixes initial issue: one may specify layout like this:

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/
guest
  guest
13 Mar 2013 23:18
2 months ago
Hello guys, is this feature available in the Stash plugin? (And thanks for the great product!)

Igor
Alexander Kitaev
  Alexander Kitaev
13 Mar 2013 23:31
2 months ago
Hi Igor,

This feature will be supported in the next minor update of the Stash plugin, see http://issues.tmatesoft.com/issue/SG-11
Igor Sereda
  Igor Sereda
14 Mar 2013 07:47
2 months ago
Thanks, Alexander! Looking forward to it. (Can't access SG-11 though)
Alexander Kitaev
  Alexander Kitaev
14 Mar 2013 17:13
2 months ago
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!
Apply Command

Command Preview: