setting SVN repository to Codebrag.

32 views
Skip to first unread message

amit rohit Pathak

unread,
Aug 2, 2018, 3:20:10 AM8/2/18
to Codebrag Users
download tortoise SVN and Visual SVN plugin for Visual studio and this is working fine. Not need to integrate this with code brag.


as per my undersding - need to clone my repo


I clone like this in file


and when run getting error below


Could anybody hep in this regard.

Thanks in advance.

Naga

unread,
Aug 2, 2018, 3:33:35 AM8/2/18
to amit rohit Pathak, Codebrag Users
Did you update the codebrag.conf configuration file properly ? Also you have to download your code using git-svn again inside repos folder....for codebrag to watch..

Codebrag only understand git format....so you need to download even ur svn repo using git-svn so it can be converted to git format for codebrag to understand..


-Naga


--
You received this message because you are subscribed to the Google Groups "Codebrag Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codebrag-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Arjun

unread,
Aug 2, 2018, 3:55:00 AM8/2/18
to Codebrag Users
Thanks for the reply,

I am working on a shared drive where no need of authentication, I create my VS code in a drive + create repository on same location. Is still something to change in codebrag.conf.

also how to download my code using git- svn. I checked and download code from

and it installed

Is anyone of this tool will use for git-svn purpose????

please advise.
To unsubscribe from this group and stop receiving emails from it, send an email to codebrag-user...@googlegroups.com.

Naga

unread,
Aug 2, 2018, 4:31:50 AM8/2/18
to Arjun, Codebrag Users
Arjun,

As mentioned in the wiki page i shared..you need to download the code inside the repos folder inside the codebrag install.....thats where it always looks...

git svn clone <<repository url>> -r <<from revision number>>:HEAD

you can also skip the -r part but the system will try and download all versions from the initial commit and you probably do not want that...

We are on git 2.17.1 built from source on oracle linux.

Let me know if you need more info

Thanks,
-Naga

To unsubscribe from this group and stop receiving emails from it, send an email to codebrag-users+unsubscribe@googlegroups.com.

Arjun

unread,
Aug 2, 2018, 4:57:31 AM8/2/18
to Codebrag Users
Hello Naga,

My repository URL is - X:\Amit Pathak\Project_SVN



is this command is OK -

git svn clone X:/Amit Pathak/Project_SVN/trunk

where to run this command? what tool will be use?

Arjun

unread,
Aug 2, 2018, 5:35:45 AM8/2/18
to Codebrag Users
Hello Naga,

I found GIT CMD command tool will use for this command, Getting error

seems command is not as per requirement. Could you please help here.

Arjun

unread,
Aug 2, 2018, 6:02:27 AM8/2/18
to Codebrag Users
Hello Dear,

Seems I did something correct, now command is like -


I found it created a empty folder in repos folder. Am i going good?

pls advice.

Naga

unread,
Aug 2, 2018, 6:13:24 AM8/2/18
to Arjun, Codebrag Users
Every time u try to clone the repo..please delete the old folder thats already inside the repos folder...

You need to have a SVN URL - not a folder path...

if you have to checkout your SVN repo you do something like  -  svn co <URL>  -- this is the URL you are expected to use..

-Naga


To unsubscribe from this group and stop receiving emails from it, send an email to codebrag-users+unsubscribe@googlegroups.com.

Arjun

unread,
Aug 2, 2018, 6:29:57 AM8/2/18
to Codebrag Users
SVN URL means - file:///C/SVNREPO. Is that you mean?

I tried command as below and getting this without error. I think this is fine. now I can start work with codebrag. please advise

Naga

unread,
Aug 2, 2018, 6:54:52 AM8/2/18
to Arjun, Codebrag Users
YEa looks good now...try and start codebrag..but u need to add the repo details in the first section of codebrag.conf...if you havent already....

To unsubscribe from this group and stop receiving emails from it, send an email to codebrag-users+unsubscribe@googlegroups.com.

Arjun

unread,
Aug 2, 2018, 6:57:21 AM8/2/18
to Codebrag Users
Hello Naga,

seems need to upade codebrg.conf.

my code is in the same machine so could you advice what value need to set here.

  web-server-port = 8080
    application-url = "http://localhost:8080"

Arjun

unread,
Aug 2, 2018, 7:10:50 AM8/2/18
to Codebrag Users
you mean here

   repos-root = "./repos" ?

Naga

unread,
Aug 2, 2018, 10:48:15 AM8/2/18
to Arjun, Codebrag Users
Extract from my codebrag.conf

------------------------------
repositories {

#    These are global settings, applied to all repositories if not overriden (see below)
#    Uncomment either username/password or passphrase depending on your git/svn repositories authentication method
#    username = "johndoe"
#    password = "secret_password"
#    passphrase = "secret_passphrase"


#    Repository-specific settings, applied to repository with given name
#    repo_name {
#        username = "johndoe"
#        password = "secret_password"
#        passphrase = "secret_passphrase"
#    }

        trunk {
                username = "naga"
                password = "naga@123"
        }
        proj1branch {
                username = "naga"
                password = "naga@123"
        }

        proj2branch {
                username = "naga"
                password = "naga@123"
        }

}

codebrag {
    data-dir = "./data"
    repos-root = "./repos"
    send-anon-usage-data = false
    web-server-port = 8280
    application-url = "http://192.168.10.101:8280"
...........

To unsubscribe from this group and stop receiving emails from it, send an email to codebrag-users+unsubscribe@googlegroups.com.

Arjun

unread,
Aug 3, 2018, 12:32:45 AM8/3/18
to Codebrag Users
Hello Naga,

For My case svn repo exist in C:C:\SVNREPO, system is same so i think no need to user name and password for my case.
Could you advise what to do for my case. I am planning to use codebrag for window applicaton not web i.e. http is not for my case.

thank you

Naga

unread,
Aug 3, 2018, 1:17:36 AM8/3/18
to Arjun, Codebrag Users
Ok I havent tried with the repo on the same machine...

You can use codebrag for any application...that doesnt matter..where are u stuck now ??

You mean u want to native windows application and dont want to use http://<ip>:<port> to access codebrag ? If thats what you want? I dont know if there is a native application available for windows..

-Naga

To unsubscribe from this group and stop receiving emails from it, send an email to codebrag-users+unsubscribe@googlegroups.com.

Arjun

unread,
Aug 3, 2018, 1:33:14 AM8/3/18
to Codebrag Users
I am stucking when i am running codebrag.bat file. it is stopping as


I think URL and port would be use when someone accesing any webserver. for my case another setting will be require.
Reply all
Reply to author
Forward
0 new messages