You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Yong Shiuh Rong <sh...@synamatix.com> on 2008/12/11 01:26:18 UTC
svn repository issue
Hi there,
I manage to convert CVS to SVN recently, but i think i created the repo
wrongly
i have a folder /svn/repos/abc where abc should be the repo folder, anything
under abc is the module, but now all the modules /svn/repos/abc/xyz itself
is the repo, not abc, i think i must have done something wrong while
importing it to svn, is there anyway to fix it?
thanks
Yong
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=982634
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
RE: svn repository issue
Posted by Bob Archer <Bo...@amsi.com>.
Maybe because you didn't provide the correct parameters... you need to
do:
sudo svnadmin load --parent-dir /abc/def /Path/To/Repository<
/svn/dumprepos/abc/def.dump
Here is the prototype
sudo svnadmin load --parent-dir ARG REPOSITORY <
/svn/dumprepos/abc/def.dump
Bob
________________________________
From: Yong Shiuh Rong [mailto:shiuhrong@synamatix.com]
Sent: Sunday, January 04, 2009 10:56 PM
To: Ryan Schmidt
Cc: users@subversion.tigris.org
Subject: Re: svn repository issue
Hi Ryan
i am not sure if i have done the correct way, but when i tried the
following:
sudo svnadmin load --parent-dir /svn/repos/abc/def <
/svn/dumprepos/abc/def.dump
svnadmin: Repository argument required
yong
On Tue, Dec 30, 2008 at 4:41 PM, Yong Shiuh Rong
<sh...@synamatix.com> wrote:
ok. thanks for the reply, i will try again
yong
On Tue, Dec 30, 2008 at 4:39 PM, Ryan Schmidt
<su...@ryandesign.com> wrote:
On Dec 30, 2008, at 01:23, Yong Shiuh Rong wrote:
Ryan Schmidt wrote:
On Dec 23, 2008, at 22:22, Yong Shiuh Rong wrote:
But i encounter another issue now, which is when i do the
"svnadmin dump /svn/repos/abc/repo1 > /path/to/dump1" as told i got the
following error.
sudo svnadmin dump /svn/repos/abd/def/ >
/svn/dumprepos/abc/def/
-bash: /svn/dumprepos/abc/def/: Is a directory
is there anything i done wrong?
Give svnadmin the name of the file you want to dump to, e.g.:
sudo svnadmin dump /svn/repos/abd/def/ > /svn/dumprepos/abc/def.dump
i tried to run the following command:
sudo svnadmin load /svn/repos/abc/ < /svn/dumprepos/abc/hij.dump
but it gave me the following error:
<<< Started new transaction, based on original revision 1
svnadmin: File already exists: filesystem '/svn/repos/abc/db',
transaction '14-h', path 'branches'
* adding path : branches
Ah, so both repositories contain the directory "branches" (and probably
the directories "tags" and "trunk" as well, yes?)
So you should be loading each repository into a subdirectory of the
destination repository instead. Look into the --parent-dir option to
svnadmin load. Note that you will need to "svn mkdir" the directory in
question before you can load anything into it with the --parent-dir
option.
i think i may redo the whole repository from scratch, is there any guide
so that i won't repeat the same mistake again?
You don't have to start over if you don't want to; just use the
--parent-dir option.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1060273
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svn repository issue
Posted by Yong Shiuh Rong <sh...@synamatix.com>.
i am reconverting the repos from the original cvs source, is there any way
to make sure i wont fall back to the same mistake again?
yong
On Mon, Jan 5, 2009 at 4:41 PM, Ryan Schmidt <
subversion-2009a@ryandesign.com> wrote:
> On Jan 5, 2009, at 02:08, Yong Shiuh Rong wrote:
>
> i need to use svnadmin to create the branches, trunk and tags?
>>>>
>>>
>>> svnadmin can't create directories in a repository (see "svnadmin help");
>>> you'll need to use, for example, "svn mkdir
>>> file:///svn/repos/abc/def/branches".
>>>
>>
>> i created the branches, trunks and tags already, but after each creation i
>> was directed to a vi editor
>>
>
> Yes, so that you can enter a log message for the commit. If you prefer an
> editor other than vi, set the EDITOR environment variable. If you prefer to
> give your commit message at the command line, use the "-m" option, e.g. "svn
> mkdir file:///path/to/dir -m 'making dir'"
>
> and if i quite by using q!, i will get the following
>>
>> Log message unchanged or not specified
>> (a)bort, (c)ontinue, (e)dit :
>>
>> i choosed continue
>>
>
> Ok, then you entered no log messages for those commits.
>
> svn: Try 'svn mkdir --parents' instead?
>> svn: File not found: transaction '14-s', path '/def/branches'
>>
>
> That means the /def directory did not yet exist in the repository. You can
> either "svn mkdir" it first, or, as the error message says, use the
> "--parents" option to "svn mkdir" to create any intermediate directories
> automatically.
>
>
>
>
>
Re: svn repository issue
Posted by Yong Shiuh Rong <sh...@synamatix.com>.
Hi Ryan,
I have recreated the /svn/repos/abc and follow your instructions to create
/svn/repos/abc/def as will as the trunk, branches and tags under
/svn/repos/abc/def
by using the command sudo svn mkdir file:///svn/repos/abc/def/trunk -m trunk
but when i try to load the dump file it gave me the following message:
sudo svnadmin load /svn/repos/abc/ --parent-dir def < /svn/dumprepos/
abc/def.dump
root's password:
<<< Started new transaction, based on original revision 1
svnadmin: File already exists: filesystem '/svn/repos/abc/db', transaction
'9-c', path 'def/branches'
* adding path : def/branches ...sysu@neura-svn-01:/svn>
or can i just import the module from my old cvs module directly to the
/svn/repos/abc/def/
folder?
thanks
Yong
On Mon, Jan 5, 2009 at 4:41 PM, Ryan Schmidt <
subversion-2009a@ryandesign.com> wrote:
> On Jan 5, 2009, at 02:08, Yong Shiuh Rong wrote:
>
> i need to use svnadmin to create the branches, trunk and tags?
>>>>
>>>
>>> svnadmin can't create directories in a repository (see "svnadmin help");
>>> you'll need to use, for example, "svn mkdir
>>> file:///svn/repos/abc/def/branches".
>>>
>>
>> i created the branches, trunks and tags already, but after each creation i
>> was directed to a vi editor
>>
>
> Yes, so that you can enter a log message for the commit. If you prefer an
> editor other than vi, set the EDITOR environment variable. If you prefer to
> give your commit message at the command line, use the "-m" option, e.g. "svn
> mkdir file:///path/to/dir -m 'making dir'"
>
> and if i quite by using q!, i will get the following
>>
>> Log message unchanged or not specified
>> (a)bort, (c)ontinue, (e)dit :
>>
>> i choosed continue
>>
>
> Ok, then you entered no log messages for those commits.
>
> svn: Try 'svn mkdir --parents' instead?
>> svn: File not found: transaction '14-s', path '/def/branches'
>>
>
> That means the /def directory did not yet exist in the repository. You can
> either "svn mkdir" it first, or, as the error message says, use the
> "--parents" option to "svn mkdir" to create any intermediate directories
> automatically.
>
>
>
>
>
Re: svn repository issue
Posted by Yong Shiuh Rong <sh...@synamatix.com>.
i have been wasting too much time on this, i think to recreate a new one
will save my time.
yong
On Mon, Jan 5, 2009 at 4:41 PM, Ryan Schmidt <
subversion-2009a@ryandesign.com> wrote:
> On Jan 5, 2009, at 02:08, Yong Shiuh Rong wrote:
>
> i need to use svnadmin to create the branches, trunk and tags?
>>>>
>>>
>>> svnadmin can't create directories in a repository (see "svnadmin help");
>>> you'll need to use, for example, "svn mkdir
>>> file:///svn/repos/abc/def/branches".
>>>
>>
>> i created the branches, trunks and tags already, but after each creation i
>> was directed to a vi editor
>>
>
> Yes, so that you can enter a log message for the commit. If you prefer an
> editor other than vi, set the EDITOR environment variable. If you prefer to
> give your commit message at the command line, use the "-m" option, e.g. "svn
> mkdir file:///path/to/dir -m 'making dir'"
>
> and if i quite by using q!, i will get the following
>>
>> Log message unchanged or not specified
>> (a)bort, (c)ontinue, (e)dit :
>>
>> i choosed continue
>>
>
> Ok, then you entered no log messages for those commits.
>
> svn: Try 'svn mkdir --parents' instead?
>> svn: File not found: transaction '14-s', path '/def/branches'
>>
>
> That means the /def directory did not yet exist in the repository. You can
> either "svn mkdir" it first, or, as the error message says, use the
> "--parents" option to "svn mkdir" to create any intermediate directories
> automatically.
>
>
>
>
>
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1006717
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svn repository issue
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jan 5, 2009, at 02:08, Yong Shiuh Rong wrote:
>>> i need to use svnadmin to create the branches, trunk and tags?
>>
>> svnadmin can't create directories in a repository (see "svnadmin
>> help"); you'll need to use, for example, "svn mkdir file:///svn/
>> repos/abc/def/branches".
>
> i created the branches, trunks and tags already, but after each
> creation i was directed to a vi editor
Yes, so that you can enter a log message for the commit. If you
prefer an editor other than vi, set the EDITOR environment variable.
If you prefer to give your commit message at the command line, use
the "-m" option, e.g. "svn mkdir file:///path/to/dir -m 'making dir'"
> and if i quite by using q!, i will get the following
>
> Log message unchanged or not specified
> (a)bort, (c)ontinue, (e)dit :
>
> i choosed continue
Ok, then you entered no log messages for those commits.
> svn: Try 'svn mkdir --parents' instead?
> svn: File not found: transaction '14-s', path '/def/branches'
That means the /def directory did not yet exist in the repository.
You can either "svn mkdir" it first, or, as the error message says,
use the "--parents" option to "svn mkdir" to create any intermediate
directories automatically.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1004538
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svn repository issue
Posted by Yong Shiuh Rong <sh...@synamatix.com>.
i created the branches, trunks and tags already, but after each creation i
was directed to a vi editor and if i quite by using q!, i will get the
following
Log message unchanged or not specified
(a)bort, (c)ontinue, (e)dit :
i choosed continue
svn: Try 'svn mkdir --parents' instead?
svn: File not found: transaction '14-s', path '/def/branches'
yong
On Mon, Jan 5, 2009 at 3:38 PM, Ryan Schmidt <
subversion-2009a@ryandesign.com> wrote:
>
> On Jan 5, 2009, at 01:29, Yong Shiuh Rong wrote:
>
> On Mon, Jan 5, 2009 at 3:12 PM, Ryan Schmidt wrote:
>>
>> On Jan 5, 2009, at 00:32, Yong Shiuh Rong wrote:
>>>
>>> On Mon, Jan 5, 2009 at 12:04 PM, Ryan Schmidt wrote:
>>>>
>>>> svnadmin load /svn/repos/abc --parent-dir def <
>>>>> /svn/dumprepos/abc/def.dump
>>>>>
>>>>
>>>> after i run it again with the command you gave me
>>>>
>>>> <<< Started new transaction, based on original revision 1
>>>> svnadmin: File not found: transaction '14-k', path 'def/branches'
>>>>
>>>> this is what i get...
>>>>
>>>
>>> Does the dumpfile include the revision that created def/branches? If not,
>>> create that directory in the new repository before loading the dump. The
>>> same might apply to tags and trunk as well.
>>>
>>
>> when i do a list now
>>
>> :/svn/repos/abc> ls
>> conf db format hooks locks README.txt
>>
>> i can only see the above,
>>
>
> That's quite normal. You can read README.txt, which explains:
>
> "This is a Subversion repository; use the 'svnadmin' tool to examine
> it. Do not add, delete, or modify files here unless you know how
> to avoid corrupting the repository."
>
>
> i need to use svnadmin to create the branches, trunk and tags?
>>
>
> svnadmin can't create directories in a repository (see "svnadmin help");
> you'll need to use, for example, "svn mkdir
> file:///svn/repos/abc/def/branches".
>
>
>
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1004506
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svn repository issue
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jan 5, 2009, at 01:29, Yong Shiuh Rong wrote:
> On Mon, Jan 5, 2009 at 3:12 PM, Ryan Schmidt wrote:
>
>> On Jan 5, 2009, at 00:32, Yong Shiuh Rong wrote:
>>
>>> On Mon, Jan 5, 2009 at 12:04 PM, Ryan Schmidt wrote:
>>>
>>>> svnadmin load /svn/repos/abc --parent-dir def < /svn/dumprepos/
>>>> abc/def.dump
>>>
>>> after i run it again with the command you gave me
>>>
>>> <<< Started new transaction, based on original revision 1
>>> svnadmin: File not found: transaction '14-k', path 'def/branches'
>>>
>>> this is what i get...
>>
>> Does the dumpfile include the revision that created def/branches?
>> If not, create that directory in the new repository before loading
>> the dump. The same might apply to tags and trunk as well.
>
> when i do a list now
>
> :/svn/repos/abc> ls
> conf db format hooks locks README.txt
>
> i can only see the above,
That's quite normal. You can read README.txt, which explains:
"This is a Subversion repository; use the 'svnadmin' tool to examine
it. Do not add, delete, or modify files here unless you know how
to avoid corrupting the repository."
> i need to use svnadmin to create the branches, trunk and tags?
svnadmin can't create directories in a repository (see "svnadmin
help"); you'll need to use, for example, "svn mkdir file:///svn/repos/
abc/def/branches".
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1004478
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svn repository issue
Posted by Yong Shiuh Rong <sh...@synamatix.com>.
when i do a list now
:/svn/repos/abc> ls
conf db format hooks locks README.txt
i can only see the above, i need to use svnadmin to create the branches,
trunk andtags?
yong
On Mon, Jan 5, 2009 at 3:12 PM, Ryan Schmidt <
subversion-2009a@ryandesign.com> wrote:
> On Jan 5, 2009, at 00:32, Yong Shiuh Rong wrote:
>
> On Mon, Jan 5, 2009 at 12:04 PM, Ryan Schmidt wrote:
>>
>> svnadmin load /svn/repos/abc --parent-dir def <
>>> /svn/dumprepos/abc/def.dump
>>>
>>
>> after i run it again with the command you gave me
>>
>> <<< Started new transaction, based on original revision 1
>> svnadmin: File not found: transaction '14-k', path 'def/branches'
>>
>> this is what i get...
>>
>
> Does the dumpfile include the revision that created def/branches? If not,
> create that directory in the new repository before loading the dump. The
> same might apply to tags and trunk as well.
>
>
>
>
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1004461
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svn repository issue
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jan 5, 2009, at 00:32, Yong Shiuh Rong wrote:
> On Mon, Jan 5, 2009 at 12:04 PM, Ryan Schmidt wrote:
>
>> svnadmin load /svn/repos/abc --parent-dir def < /svn/dumprepos/abc/
>> def.dump
>
> after i run it again with the command you gave me
>
> <<< Started new transaction, based on original revision 1
> svnadmin: File not found: transaction '14-k', path 'def/branches'
>
> this is what i get...
Does the dumpfile include the revision that created def/branches? If
not, create that directory in the new repository before loading the
dump. The same might apply to tags and trunk as well.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1004435
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svn repository issue
Posted by Yong Shiuh Rong <sh...@synamatix.com>.
after i run it again with the command you gave me
<<< Started new transaction, based on original revision 1
svnadmin: File not found: transaction '14-k', path 'def/branches'
this is what i get...
yong
On Mon, Jan 5, 2009 at 12:04 PM, Ryan Schmidt <
subversion-2009a@ryandesign.com> wrote:
> On Jan 4, 2009, at 21:56, Yong Shiuh Rong wrote:
>
> i am not sure if i have done the correct way, but when i tried the
>> following:
>> sudo svnadmin load --parent-dir /svn/repos/abc/def <
>> /svn/dumprepos/abc/def.dump
>>
>> svnadmin: Repository argument required
>>
>
> You need to give it the path to the repository, as always, and if using the
> --parent-dir argument, then also give it the path within the repository
> where you want to load this dumpfile.
>
> svnadmin load /svn/repos/abc --parent-dir def < /svn/dumprepos/abc/def.dump
>
>
>
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1004411
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svn repository issue
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jan 4, 2009, at 21:56, Yong Shiuh Rong wrote:
> i am not sure if i have done the correct way, but when i tried the
> following:
> sudo svnadmin load --parent-dir /svn/repos/abc/def < /svn/dumprepos/
> abc/def.dump
>
> svnadmin: Repository argument required
You need to give it the path to the repository, as always, and if
using the --parent-dir argument, then also give it the path within
the repository where you want to load this dumpfile.
svnadmin load /svn/repos/abc --parent-dir def < /svn/dumprepos/abc/
def.dump
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1004119
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svn repository issue
Posted by Yong Shiuh Rong <sh...@synamatix.com>.
Hi Ryan
i am not sure if i have done the correct way, but when i tried the
following:
sudo svnadmin load --parent-dir /svn/repos/abc/def <
/svn/dumprepos/abc/def.dump
svnadmin: Repository argument required
yong
On Tue, Dec 30, 2008 at 4:41 PM, Yong Shiuh Rong <sh...@synamatix.com>wrote:
> ok. thanks for the reply, i will try again
> yong
>
>
> On Tue, Dec 30, 2008 at 4:39 PM, Ryan Schmidt <
> subversion-2008c@ryandesign.com> wrote:
>
>> On Dec 30, 2008, at 01:23, Yong Shiuh Rong wrote:
>>
>> Ryan Schmidt wrote:
>>>
>>> On Dec 23, 2008, at 22:22, Yong Shiuh Rong wrote:
>>>>
>>>> But i encounter another issue now, which is when i do the "svnadmin
>>>>> dump /svn/repos/abc/repo1 > /path/to/dump1" as told i got the following
>>>>> error.
>>>>>
>>>>> sudo svnadmin dump /svn/repos/abd/def/ > /svn/dumprepos/abc/def/
>>>>> -bash: /svn/dumprepos/abc/def/: Is a directory
>>>>>
>>>>> is there anything i done wrong?
>>>>>
>>>>
>>>> Give svnadmin the name of the file you want to dump to, e.g.:
>>>>
>>>> sudo svnadmin dump /svn/repos/abd/def/ > /svn/dumprepos/abc/def.dump
>>>>
>>>
>>> i tried to run the following command:
>>> sudo svnadmin load /svn/repos/abc/ < /svn/dumprepos/abc/hij.dump
>>>
>>> but it gave me the following error:
>>>
>>> <<< Started new transaction, based on original revision 1
>>> svnadmin: File already exists: filesystem '/svn/repos/abc/db',
>>> transaction '14-h', path 'branches'
>>> * adding path : branches
>>>
>>
>> Ah, so both repositories contain the directory "branches" (and probably
>> the directories "tags" and "trunk" as well, yes?)
>>
>> So you should be loading each repository into a subdirectory of the
>> destination repository instead. Look into the --parent-dir option to
>> svnadmin load. Note that you will need to "svn mkdir" the directory in
>> question before you can load anything into it with the --parent-dir option.
>>
>>
>> i think i may redo the whole repository from scratch, is there any guide
>>> so that i won't repeat the same mistake again?
>>>
>>
>> You don't have to start over if you don't want to; just use the
>> --parent-dir option.
>>
>>
>>
>
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1004118
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svn repository issue
Posted by Yong Shiuh Rong <sh...@synamatix.com>.
ok. thanks for the reply, i will try again
yong
On Tue, Dec 30, 2008 at 4:39 PM, Ryan Schmidt <
subversion-2008c@ryandesign.com> wrote:
> On Dec 30, 2008, at 01:23, Yong Shiuh Rong wrote:
>
> Ryan Schmidt wrote:
>>
>> On Dec 23, 2008, at 22:22, Yong Shiuh Rong wrote:
>>>
>>> But i encounter another issue now, which is when i do the "svnadmin dump
>>>> /svn/repos/abc/repo1 > /path/to/dump1" as told i got the following error.
>>>>
>>>> sudo svnadmin dump /svn/repos/abd/def/ > /svn/dumprepos/abc/def/
>>>> -bash: /svn/dumprepos/abc/def/: Is a directory
>>>>
>>>> is there anything i done wrong?
>>>>
>>>
>>> Give svnadmin the name of the file you want to dump to, e.g.:
>>>
>>> sudo svnadmin dump /svn/repos/abd/def/ > /svn/dumprepos/abc/def.dump
>>>
>>
>> i tried to run the following command:
>> sudo svnadmin load /svn/repos/abc/ < /svn/dumprepos/abc/hij.dump
>>
>> but it gave me the following error:
>>
>> <<< Started new transaction, based on original revision 1
>> svnadmin: File already exists: filesystem '/svn/repos/abc/db', transaction
>> '14-h', path 'branches'
>> * adding path : branches
>>
>
> Ah, so both repositories contain the directory "branches" (and probably the
> directories "tags" and "trunk" as well, yes?)
>
> So you should be loading each repository into a subdirectory of the
> destination repository instead. Look into the --parent-dir option to
> svnadmin load. Note that you will need to "svn mkdir" the directory in
> question before you can load anything into it with the --parent-dir option.
>
>
> i think i may redo the whole repository from scratch, is there any guide
>> so that i won't repeat the same mistake again?
>>
>
> You don't have to start over if you don't want to; just use the
> --parent-dir option.
>
>
>
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=995623
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svn repository issue
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Dec 30, 2008, at 01:23, Yong Shiuh Rong wrote:
> Ryan Schmidt wrote:
>
>> On Dec 23, 2008, at 22:22, Yong Shiuh Rong wrote:
>>
>>> But i encounter another issue now, which is when i do the
>>> "svnadmin dump /svn/repos/abc/repo1 > /path/to/dump1" as told i
>>> got the following error.
>>>
>>> sudo svnadmin dump /svn/repos/abd/def/ > /svn/dumprepos/abc/def/
>>> -bash: /svn/dumprepos/abc/def/: Is a directory
>>>
>>> is there anything i done wrong?
>>
>> Give svnadmin the name of the file you want to dump to, e.g.:
>>
>> sudo svnadmin dump /svn/repos/abd/def/ > /svn/dumprepos/abc/def.dump
>
> i tried to run the following command:
> sudo svnadmin load /svn/repos/abc/ < /svn/dumprepos/abc/hij.dump
>
> but it gave me the following error:
>
> <<< Started new transaction, based on original revision 1
> svnadmin: File already exists: filesystem '/svn/repos/abc/db',
> transaction '14-h', path 'branches'
> * adding path : branches
Ah, so both repositories contain the directory "branches" (and
probably the directories "tags" and "trunk" as well, yes?)
So you should be loading each repository into a subdirectory of the
destination repository instead. Look into the --parent-dir option to
svnadmin load. Note that you will need to "svn mkdir" the directory
in question before you can load anything into it with the --parent-
dir option.
> i think i may redo the whole repository from scratch, is there any
> guide so that i won't repeat the same mistake again?
You don't have to start over if you don't want to; just use the --
parent-dir option.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=995622
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svn repository issue
Posted by Yong Shiuh Rong <sh...@synamatix.com>.
Dear Ryan,
i tried to run the following command:
sudo svnadmin load /svn/repos/abc/ < /svn/dumprepos/abc/hij.dump
but it gave me the following error:
<<< Started new transaction, based on original revision 1
svnadmin: File already exists: filesystem '/svn/repos/abc/db', transaction
'14-h', path 'branches'
* adding path : branches
i think i may redo the whole repository from scratch, is there any guide so
that i won't repeat the same mistake again?
thanks
Yong
On Wed, Dec 24, 2008 at 1:54 PM, Yong Shiuh Rong <sh...@synamatix.com>wrote:
> ok great, i will try again
> thanks!
> yong
>
>
> On Wed, Dec 24, 2008 at 1:45 PM, Ryan Schmidt <
> subversion-2008c@ryandesign.com> wrote:
>
>> On Dec 23, 2008, at 22:22, Yong Shiuh Rong wrote:
>>
>> Thanks, I got it already.
>>>
>>> But i encounter another issue now, which is when i do the "svnadmin dump
>>> /svn/repos/abc/repo1 > /path/to/dump1" as told i got the following error.
>>>
>>> sudo svnadmin dump /svn/repos/abd/def/ > /svn/dumprepos/abc/def/
>>> -bash: /svn/dumprepos/abc/def/: Is a directory
>>>
>>> is there anything i done wrong?
>>>
>>
>> Give svnadmin the name of the file you want to dump to, e.g.:
>>
>> sudo svnadmin dump /svn/repos/abd/def/ > /svn/dumprepos/abc/def.dump
>>
>>
>
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=995558
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svn repository issue
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Dec 23, 2008, at 22:22, Yong Shiuh Rong wrote:
> Thanks, I got it already.
>
> But i encounter another issue now, which is when i do the "svnadmin
> dump /svn/repos/abc/repo1 > /path/to/dump1" as told i got the
> following error.
>
> sudo svnadmin dump /svn/repos/abd/def/ > /svn/dumprepos/abc/def/
> -bash: /svn/dumprepos/abc/def/: Is a directory
>
> is there anything i done wrong?
Give svnadmin the name of the file you want to dump to, e.g.:
sudo svnadmin dump /svn/repos/abd/def/ > /svn/dumprepos/abc/def.dump
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=991266
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svn repository issue
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Dec 21, 2008, at 21:49, Yong Shiuh Rong wrote:
> I downloaded the svndumptool0.30 and try to install, but it gave a
> error
>
> sudo ./setup.py install
> running install
> error: invalid Python installation: unable to open /usr/lib64/
> python2.5/config/Makefile (No such file or directory)
>
> is there any 64 bit version of this tool?
I don't have that information; I don't really know anything about
building software using python.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=990451
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svn repository issue
Posted by Yong Shiuh Rong <sh...@synamatix.com>.
Dear Ryan,
I downloaded the svndumptool0.30 and try to install, but it gave a error
sudo ./setup.py install
running install
error: invalid Python installation: unable to open
/usr/lib64/python2.5/config/Makefile (No such file or directory)
is there any 64 bit version of this tool?
thank you
Yong
On Fri, Dec 12, 2008 at 7:34 AM, Ryan Schmidt <
subversion-2008c@ryandesign.com> wrote:
> On Dec 10, 2008, at 19:26, Yong Shiuh Rong wrote:
>
> I manage to convert CVS to SVN recently, but i think i created the repo
>> wrongly
>>
>> i have a folder /svn/repos/abc where abc should be the repo folder,
>> anything under abc is the module, but now all the modules /svn/repos/abc/xyz
>> itself is the repo, not abc, i think i must have done something wrong while
>> importing it to svn, is there anyway to fix it?
>>
>
> So you wanted a single repository /svn/repos/abc but you ended up with
> several repositories inside a directory /svn/repos/abc.
>
> Yes, you can change this now. You will need to dump each of your existing
> repositories (e.g. for each repository, do something like "svnadmin dump
> /svn/repos/abc/repo1 > /path/to/dump1"), then move the existing repositories
> out of the way ("mv /svn/repos/abc /svn/repos/abc-old"), create the new
> repository ("svnadmin create /svn/repos/abc"), then load each of the
> dumpfiles into the new repository.
>
> There are two ways you can load the dumpfiles into the new repository. One
> is the way Subversion provides built-in: "svnadmin load /svn/repos/abc <
> /path/to/dump1" and so on for each dumpfile. The disadvantage of this method
> is that the revisions of the new combined repository will not be in
> chronological order, which means you can never reliably use the Subversion
> feature of finding a revision based on a date (e.g. "svn log -r
> {2008-12-11}"). If that feature is important to you, you should load using a
> script like svndumptool instead.
>
> http://svn.borg.ch/svndumptool/
>
> You can use svndumptool's "merge" command to merge multiple dumpfiles into
> a single dumpfile where the revisions of all dumpfiles are combined in
> chronological order. Then you can load that merged dumpfile into your new
> repository.
>
> Regardless which method you use, any existing working copies will be
> invalid and you will need to check out new ones. So if you can, commit any
> remaining changes in your working copies before doing the conversion. Also
> note that most of your revisions will be renumbered, so any references to
> revision numbers in your commit messages or in an issue tracking system will
> be incorrect.
>
>
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=989385
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svn repository issue
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Dec 10, 2008, at 19:26, Yong Shiuh Rong wrote:
> I manage to convert CVS to SVN recently, but i think i created the
> repo wrongly
>
> i have a folder /svn/repos/abc where abc should be the repo folder,
> anything under abc is the module, but now all the modules /svn/
> repos/abc/xyz itself is the repo, not abc, i think i must have done
> something wrong while importing it to svn, is there anyway to fix it?
So you wanted a single repository /svn/repos/abc but you ended up
with several repositories inside a directory /svn/repos/abc.
Yes, you can change this now. You will need to dump each of your
existing repositories (e.g. for each repository, do something like
"svnadmin dump /svn/repos/abc/repo1 > /path/to/dump1"), then move the
existing repositories out of the way ("mv /svn/repos/abc /svn/repos/
abc-old"), create the new repository ("svnadmin create /svn/repos/
abc"), then load each of the dumpfiles into the new repository.
There are two ways you can load the dumpfiles into the new
repository. One is the way Subversion provides built-in: "svnadmin
load /svn/repos/abc < /path/to/dump1" and so on for each dumpfile.
The disadvantage of this method is that the revisions of the new
combined repository will not be in chronological order, which means
you can never reliably use the Subversion feature of finding a
revision based on a date (e.g. "svn log -r {2008-12-11}"). If that
feature is important to you, you should load using a script like
svndumptool instead.
http://svn.borg.ch/svndumptool/
You can use svndumptool's "merge" command to merge multiple dumpfiles
into a single dumpfile where the revisions of all dumpfiles are
combined in chronological order. Then you can load that merged
dumpfile into your new repository.
Regardless which method you use, any existing working copies will be
invalid and you will need to check out new ones. So if you can,
commit any remaining changes in your working copies before doing the
conversion. Also note that most of your revisions will be renumbered,
so any references to revision numbers in your commit messages or in
an issue tracking system will be incorrect.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=983116
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].