Re: Moving an existing Repository to a newly created repository

2011-06-25 Thread Tech Geek
We are trying to reorganize some our projects and hence repositories so that it makes some kind of logical sense (naming wise). Our existing repository that we want to move i.e. ProjectA has very few commits (4 to 5) in it and we do not care if the revision numbers change as long as we have commit

Re: Moving an existing Repository to a newly created repository

2011-06-24 Thread Tech Geek
> You should be able to use regular old mv on the command line for this. So, svadmin create /var/lib/svn/Projects # Create new repo Projects mv /var/lib/svn/ProjectA A # Rename ProjectA to A and then? how do I move repository "A" under "Projects" repository?

Moving an existing Repository to a newly created repository

2011-06-24 Thread Tech Geek
All our SVN repositories are stored at /var/lib/svn. Let's say we have an existing repository called "ProjectA" i.e. /var/lib/svn/ProjectA. We created a brand new fresh repository called "Projects" like this /var/lib/svn/Projects. Now we would like to rename our existing repository "ProjectA" to

Subversion server and client tools compatibility

2011-04-27 Thread Tech Geek
We have a SVN server running on a Debian Linux box. Running svn --version returns: svn, version 1.6.12 (r955767) compiled Jul 28 2010, 08:58:12 Users uses TortoiseSVN client to access repositories residing on the SVN server. My question is it OK to use the latest TSVN client "TortoiseSVN-1.6.15

Re: How to get svn-bisect?

2011-01-12 Thread Tech Geek
I would like to point out to guys on this list who may be looking for the svn-bisect tool (just like I was) that it is being included in the next release of Debian [1] and in the backported version of Debian [2]. Also see [3] if you are using a Linux distribution that does not include the svn-bise

How to get svn-bisect?

2011-01-10 Thread Tech Geek
We are using svn, version 1.6.12 (r955767) on a Linux based machine (SVN Server) and use TortoiseSVN as clients. However, I do not see command svn-bisect on both of them. How can I get svn-bisect just like there is git-bisect?

Re: Having a path name after specifying repository location

2010-10-20 Thread Tech Geek
Andy: > As I asked earlier, why must PartA & PartB in a given project be > separate repositories? Why is the more conventional approach not > workable for you? > I understand what you are trying to say and I agree but let's just say that my hands are tied without going into too much details. Thi

Re: Having a path name after specifying repository location

2010-10-20 Thread Tech Geek
>The other way you could do this, if you insist upon PartA & PartB being separate repositories, is to have a different >block for each project, and specify SVNParentPath as /var/lib/svn/ProjectB . Then you could have PartA & PartB set up as separate >repositories - albeit with a lot more manageme

Re: Having a path name after specifying repository location

2010-10-20 Thread Tech Geek
Sorry for bumping this one...We really need to find a solution/workaround for this in order for our SVN implementation to be final. Thanks in advance! On Mon, Oct 18, 2010 at 6:00 PM, Tech Geek wrote: > oops...I had a typo: > > >> However the following does NOT work: >>

Re: Having a path name after specifying repository location

2010-10-18 Thread Tech Geek
oops...I had a typo: > However the following does NOT work: > #mkdir /var/lib/svn/projectB/ > #sudo svnadmin create /var/lib/svn/projectB/partA > #sudo svnadmin create /var/lib/svn/projectB/partB > > From a svn client: > #svn co http://svnserver/svn/projectB/partA partB > However the followi

Having a path name after specifying repository location

2010-10-18 Thread Tech Geek
Hi, My repository path is /var/lib/svn for the SVN server. However I encountered a unique situation as follow: The following works: #svnadmin create /var/lib/svn/projectA >From a svn client: #svn co http://svnserver/svn/projectA projectA However the following does NOT work: #mkdir /var/lib/sv

Re: Permissions to create branches/tags to certain users only

2010-10-12 Thread Tech Geek
David: The standard Python pre-commit hook that comes with Subversion's > source tarball will do the job. Are you referring to the files svnperms.conf.example and svnperms.py found at [1]. > I have a Perl version that does the same thing. > Thanks for sharing your scripts. I will take a detaile

Permissions to create branches/tags to certain users only

2010-10-11 Thread Tech Geek
Our repositories lives in /var/lib/svn/ on a Linux server. We use the following sturcture on per project per repository basis: /var/lib/svn/projectA/tags/ /var/lib/svn/projectA/trunk/ /var/lib/svn/projectA/branches/ /var/lib/svn/projectB/tags/ /var/lib/svn/projectB/trunk/ /var/lib/svn/projec

Re: Better way to get the full rule of the last commit?

2010-10-10 Thread Tech Geek
Daniel, >That is not possible for SVN to determine, as it does not know *how* you are serving the repository (HTTP, HTTPS, svn+ssh, svn, >etc). $REPOS will give you the physical path to the repository, not necessarily the publicly accessible path. That not a problem. I can always prefix the protoco

Re: Better way to get the full rule of the last commit?

2010-10-10 Thread Tech Geek
> > I assume you mean to also pass "-t $TXN" to svnlook in there somewhere. > Yes. I just copied the command from the shell prompt although I noticed that svnlook command works just fine without the "-t $TXN" argument inside the post-commit hook. > Or are you asking if there's a simpler way? Yes

Better way to get the full rule of the last commit?

2010-10-10 Thread Tech Geek
All my repositories live under /var/lib/svn/. Let's the output of the following command (on the SVN server): # svn changed /var/lib/svn/projectA/ is A PartA/tags/DEV-1.00_RC5/ Now in my post-commit hook I need the following value in a variable (say EMAIL_URL): EMAIL_URL=/var/lib/svn/projectA/Pa

Re: Why doesn't 'svnadmin create' creates tags, branches, trunk?

2010-10-07 Thread Tech Geek
I just noticed that the CollabNet's Subversion Edge has this feature when you create the repository from the web browser interface. I guess at least I am not the only one (perhaps) who thought about this.

Why doesn't 'svnadmin create' creates tags, branches, trunk?

2010-10-06 Thread Tech Geek
So I am relatively new to subversion as compared to most of the folks on this mailing list. After seeing lot of examples over the web and reading official subversion book it seems that almost every body creates their repository in some or the other way with tags, branches and trunk structure even t

Re: Importing Existing Repository into a New Repository

2010-10-06 Thread Tech Geek
> > svnadmin dump -rHEAD /path/to/oldrepo > dump > svnadmin load /path/to/newrepo < dump > Thanks Ryan! That worked!

Re: Sending attachments in email using mailer.py script

2010-10-06 Thread Tech Geek
OK I have managed to get the name of the file (after checking out to the /tmp directory) to be attached in the commit email in a variable called $ATTACHFILE in my post-commit hook. But here is another issue that I am now running into: How do I pass the value of the variable $ATTACHFILE to the mai

Re: Sending attachments in email using mailer.py script

2010-10-06 Thread Tech Geek
> > You can checkout the file to /tmp and include it from there. You > cannot reference a file in your repository with a file path. I had thought about that but it would mean that I will need to include a svn checkout command to /tmp/ directory in my post-commit hook, right? If that is the case

Re: Sending attachments in email using mailer.py script

2010-10-06 Thread Tech Geek
I guess my biggest hurdle at this time is how to extract the file from the repository that I would like to send it as an attachment. Most of the examples on the net simply specifies an explicit filename (to show as an example) like this:

Sending attachments in email using mailer.py script

2010-10-06 Thread Tech Geek
Let's say I have an exisiting repository at /var/lib/svn/projectA with (tags, branches, trunk structure) on my Linux system. I am using the mailer.py script and mailer.conf file [1] in my post-commit hook for sending out emails whenever a new release tag (like projectA/tags/REL-1.0) is created and

Re: Importing Existing Repository into a New Repository

2010-10-05 Thread Tech Geek
> > and load project a as project b and take all the history with you. > Just create a new project b without adding trunk etc. in revision 1. > I do not want all the revision history of projectA into projectB. I just need to start projectB with the latest code (trunk HEAD of) projectA. May be I am

Importing Existing Repository into a New Repository

2010-10-05 Thread Tech Geek
I have an exisiting repository at /var/lib/svn/projectA with (tags, branches, trunk structure) whose HEAD is at Revision 25 I just created a new/fresh repository at /var/lib/svn/projectB with (tags, branches, trunk structure) whose HEAD is at Revision 1 (because of importing the tags, branches and

Re: dumping non-continuous ranges using svnadmin dump

2010-10-05 Thread Tech Geek
> > svnadmin dump -r 1:15 sandbox > sandbox-dumpfile > svnadmin dump -r 18:19 sandbox > sandbox-dumpfile2 > > Then when it comes time to load, load the first file, then the second Tried but does not work... # svnadmin load sandbox-restore < sandbox-dumpfile The above command restored it up to 15

Re: Setting "tags" to read only ?

2010-10-04 Thread Tech Geek
>$SVNLOOK changed -t $2 $1 | grep "/tags/" && /bin/echo "Cannot commit to tags" 1>&2 && exit 1 I had a question regarding the above command. How do we know what value is going to be passed in $2 i.e. the name of the transaction so that we can test/debug our script. Can we somehow simulate the above

Re: Copying hooks automatically upon repository creation

2010-10-04 Thread Tech Geek
Ryan, > sudo -u "$USER" ln -s ../../conf "$REPO" || exit $? > sudo -u "$USER" ln -s ../../hooks "$REPO" || exit $? > I just realized that the above two commands will fail, if the repositories are on a SMB/CIFS mounted share on the Linux system, with the following message: ln: creating symbolic li

Re: Copying hooks automatically upon repository creation

2010-10-04 Thread Tech Geek
Thank you all for sharing the information. Really appreciate it.

Copying hooks automatically upon repository creation

2010-10-04 Thread Tech Geek
We use one repository per project. All repository lives in /var/lib/svn/. Also we use the hooks post-commit and pre-commit for every repository. Right now we have to manually copy these two hooks whenever a new repository is created. For example: cd /var/lib/svn/ cp /path-to-my-hooks/* projectA/ho

dumping non-continuous ranges using svnadmin dump

2010-10-01 Thread Tech Geek
I have a repository called "sandbox" whose HEAD is at revision 20. I would like to dump revisions 1 to15 and then from 18 to19. Basically I want to skip revision 16,17 and 20. The command: # svnadmin dump -r 1:15 -r 18:19 sandbox > sanbox-dumpfile gives error message: svnadmin: Multiple revision

Re: Wrong value in db/format when creating from TortoiseSVN

2010-09-30 Thread Tech Geek
> > Can you actually use a new repository created by svnadmin 1.5 with your > 1.6.12 server install? Or is it just previous repositories that are working? > > Yes. With my 1.6.12 server install, if I create a new repository like this: #svnadmin create --pre-1.6-compatible myproject then it works

Re: Wrong value in db/format when creating from TortoiseSVN

2010-09-30 Thread Tech Geek
Neil, > Not that I can help, but I wanted to clarify: you have a repo on a > CIFS-mounted shared drive, and are then using a Linux SVN server? > Yes that is correct. Although I admit that may not always be practical, esp. in an enterprise (we > plan to move to using NFS-mapped repos. when our S

Re: Wrong value in db/format when creating from TortoiseSVN

2010-09-29 Thread Tech Geek
I also experimented with http:// protocol and the same error message. I have spent last 2 days just working on these issues and here is what I would like to summarize: 1. Repositories created on shared network drive with 1.6.12 subversion engine (svnadmin) or 1.6.10 TSVN, will not commit through T

Re: Wrong value in db/format when creating from TortoiseSVN

2010-09-29 Thread Tech Geek
OK guys so I ended up upgrading the subversion server to 1.6.12 the same as TortoiseSVN is built against. Now I am able to checkout the repositories through TSVN but whenever I try to commit I get the following error message: $Commit failed (details follow): $Couldn't perform atomic initialization

Re: Wrong value in db/format when creating from TortoiseSVN

2010-09-28 Thread Tech Geek
Les, > The point remains that if they have write access through mapped files, >> they have the capability of destroying everything there. >> >> You could probably whip up a cgi script to create new repositories from a >> web request form if something like that doesn't already exist. Or you coul

Re: Wrong value in db/format when creating from TortoiseSVN

2010-09-28 Thread Tech Geek
> > Do not put your repository on a shared drive. Do not use file: >> protocol to access it. It is not designed to work in such way. Read >> the documentation (aka svnbook) and configure a proper server. > > > This should be emphasized more. Although the OP said he wanted the users > to be able

Re: Wrong value in db/format when creating from TortoiseSVN

2010-09-28 Thread Tech Geek
Daniel, > Or do (the Tortoise equivalent of) 'svnadmin create --pre-1.6-compatible' > Actually I would prefer to do the other way around. Can we tell TSVN to create repositories which are compatible with Subversion Engine 1.5 because we would be usually creating repositories using the TSVN. AFA

Re: Wrong value in db/format when creating from TortoiseSVN

2010-09-27 Thread Tech Geek
>I don't know what the repository version numbers are that correspond to each svn/TSVN version (and you didn't mention which >versions you have installed). Linux SVN Server version 1.5.1 (r32289) TSVN - 1.6.10 (32-bit)

Wrong value in db/format when creating from TortoiseSVN

2010-09-27 Thread Tech Geek
I have the subversion server running on a Debian Linux machine. The repositories are residing on a Windows domain shared network drive on the network which is mapped on the Linux machine as: mount -t cifs //software/svn_repositories /var/lib/svn/ -o username=mynet/techgeek,password=**,uid=www-d

Re: Two trunks in one repository?

2010-09-09 Thread Tech Geek
For some reasons this message was returned to me by the mailer daemon. So resending it again. >In SVN a working copy does not include the revision history, which remains on the server (as opposed to Git or Hg). Yes. I am aware of that. > In order to see a revision graph (TortoiseSVN feature), you

Re: Two trunks in one repository?

2010-09-09 Thread Tech Geek
>In SVN a working copy does not include the revision history, which remains on the server (as opposed to Git or Hg). Yes. I am aware of that. > In order to see a revision graph (TortoiseSVN feature), you need to communicate with the repository. Yes. True. >In fact, you don't even need a working c

Re: Two trunks in one repository?

2010-09-09 Thread Tech Geek
Geoff, I think I am beginning to undestand what you are suggesting. Right now I am in process of implementing this setup. At this point nothing exits - no ProjectD, no PartA and no PartB. So I will try to summarize what I have undestood so far: 1. All our SVN repositories lives under the followi

Re: Two trunks in one repository?

2010-09-09 Thread Tech Geek
store binary objects too) in my proposed repostiroy structure? I would like this to be as simple as it can be because the developers/users of this system are not very SVN savvy. Thanks! On Thu, Sep 9, 2010 at 1:43 PM, Itamar O wrote: > On Thu, Sep 9, 2010 at 11:23 PM, Tech Geek wrote: >

Re: Two trunks in one repository?

2010-09-09 Thread Tech Geek
I am thinking something like this: ProjectD ProjectD/PartA/trunk ProjectD/PartA/tags ProjectD/PartA/branches ProjectD/PartB/trunk ProjectD/PartB/tags ProjectD/PartB/branches Beleive me or not in our scenario the code of Part A and Part B never gets merged at any point. The only common part is tha

Two trunks in one repository?

2010-09-09 Thread Tech Geek
So the concepts of trunks, branches, tags are transparent to SVN. We are in a situation where we might need to have two trunks in one SVN repository. The reason is that we have a family of projects - say ProjectA, ProjectB, ProjectC and so on, each one has it's own repository and have just one trun

Re: Multiple Repositories under one subversion daemon

2010-09-01 Thread Tech Geek
If I understand you correctly this would mean that somebody (user/developer) has to checkout the code for each of the projects from the repository location (say C:\svn\data\repositories) to: C:\data\project1 C:\project\bluecat C:\software\abc so that the above locations reflect the latest code?

Re: Multiple Repositories under one subversion daemon

2010-09-01 Thread Tech Geek
>I may have totally misunderstood you. Are the above paths you show working copy paths, or are they existing svn repositories? Those are not existing svn repositories yet. Let's just say that those project folders should be at those locations only and I want to create SVN repositories at each of th

Multiple Repositories under one subversion daemon

2010-09-01 Thread Tech Geek
I am running subversion server on a Windows machine. Right now I am in the process of converting my exisiting projects to start using subversion and my projects are located at different paths/locations. For example: C:\data\project1 C:\project\bluecat C:\software\abc Now it seems that wehn we star

Re: Hook to check for a presence of file before committing

2010-08-31 Thread Tech Geek
Ryan - Thanks for the sample script. As mentioned before the SVN server is on a Windows server. I will convert it to a Windows environment and give it a shot.

Re: Hook to check for a presence of file before committing

2010-08-31 Thread Tech Geek
>Is it a requirement that the file be changed each time (and thus part of a commit), or just that it exists somewhere on the client side >(versioned or unversioned)? The server will only know about it when it changes since the svn client is smart enough to only send >differences. Great question. L

Re: Hook to check for a presence of file before committing

2010-08-31 Thread Tech Geek
>You want to enforce that the developer cannot commit unless they have this project.xml in >their working copy, though it will never be sent to the repository. That's not true. The project.xml (or whatever file that particular file is) should also be a part of commit. I will again repeat my questi

Re: Hook to check for a presence of file before committing

2010-08-31 Thread Tech Geek
>It is possible to verify that a project.xml is one of the files being >committed because you can use "svn changed" at the time of the >transaction to see what files are being added or modified. It would be >possible to fail the transaction if svnlook changed doesn't have a >project.xml file in the

Re: Hook to check for a presence of file before committing

2010-08-30 Thread Tech Geek
>Perhaps if you explain why you want to check for the existence of this file in the working copy we can help you find a different way of >going about it. OK. Let me try to explain this. The code that we are trying to commit is generated by an IDE - a software development tool. The particular file (

Hook to check for a presence of file before committing

2010-08-30 Thread Tech Geek
Hi, I am just getting started with SVN and I am running the latest version of subversion on a Windows Server. I am looking for a pre-commit.bat hook that will check for presence of a particular file (say project.xml) before commiting to the repository. If the working copy that is about to be commi