You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Martin Rosekeit <ma...@rosekeit.de> on 2009/09/06 21:13:23 UTC

svnadmin load does not creat files

Hello,

I try to transfer a part of a repository to another machine. But when I load the 
file into the other repositiry no new files are created.

I have done the folloving:
	svnadmin dump /srv/repos/one -r 5000:8000 > one.dump.8000
	cat ine.dump.8000 | svndumpfilter --drop-empty-revs --renumber-revs include 
"trunk/pc/" > one.dump.8000_pc

On the other machine I created svn the folder to take the copy, created  an 
empty file (/branches/one/trunk/pc/Makefile.basic.inc) for testing and loaded 
the dump:
	svn load /srv/repos/two --parent-dir /branches/one/ < one.dump.8000_pc

I then got this message:

<<< Started new transaction, based on original revision 5000

------- Committed new rev 11 (loaded from original rev 5000) >>>

<<< Started new transaction, based on original revision 5001
      * editing path : /branches/one/trunk/pc ... done.
      * editing path : /branches/one/trunk/pc/Makefile.basic.inc ... done.
svnadmin: File not found: transaction '11-d', path 
'/branches/one/pc/Makefile.dir.inc'
      * editing path : /branches/one/trunk/pc/Makefile.dir.inc ...


Empty file are filled with the right data from the dump, but when the file does 
not exist, it will not be created.

 From the dump:

Node-path: trunk/pc/Makefile.basic.inc
Text-content-md5: c8c180216ae29e721aa71efc4c8f8e25
Node-action: change
Node-kind: file
Text-content-length: 4320
Content-length: 4320

[the complete file]

Node-path: trunk/pc/Makefile.dir.inc
Text-content-md5: cc8eae4902608bff49391446f4dcf21d
Node-action: change
Node-kind: file
Text-content-length: 11540
Content-length: 11540

[the complete file]



Have I somewhere to tell svn that it has to creat the files?

The svn version on the first server is
	svnadmin, Version 1.5.1 (r32289)
and on the new one
	svnadmin, version 1.6.4 (r38063)

Thanks for help
  Martin

-- 
<<Experience is what you get, when you don't get what you want.>>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2391695

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: svnadmin load does not creat files

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Mark Reibert wrote on Sun, 6 Sep 2009 at 21:27 -0700:
> happens when you simply:
> 
> svnadmin create /svr/repos/two
> svnadmin load /srv/repos/two --parent-dir /branches/one/ < one.dump.8000_pc

Mark, I think you meant:

  svnadmin create /srv/repos/two
  svn mkdir file:///srv/repos/two/branches/one/
  svnadmin load /srv/repos/two --parent-dir /branches/one/ < one.dump.8000_pc

otherwise it would complain of /branches/one/ not existing.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2391765

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: svnadmin load does not creat files

Posted by Mark Reibert <sv...@reibert.com>.
On Sun, 2009-09-06 at 23:13 +0200, Martin Rosekeit wrote:
> Hello,
> 
> I try to transfer a part of a repository to another machine. But when I load the 
> file into the other repositiry no new files are created.
> 
> I have done the folloving:
> 	svnadmin dump /srv/repos/one -r 5000:8000 > one.dump.8000
> 	cat ine.dump.8000 | svndumpfilter --drop-empty-revs --renumber-revs include 
> "trunk/pc/" > one.dump.8000_pc
> 
> On the other machine I created svn the folder to take the copy, created  an 
> empty file (/branches/one/trunk/pc/Makefile.basic.inc) for testing and loaded 
> the dump:
> 	svn load /srv/repos/two --parent-dir /branches/one/ < one.dump.8000_pc

(Presumably you mean svnadmin load ...)

I am confused a bit as to your exact steps (what do you mean by "created
the ... folder" and "created an empty file"), but it seems odd to me
that you would do anything in the new repo prior to loading it. What
happens when you simply:

svnadmin create /svr/repos/two
svnadmin load /srv/repos/two --parent-dir /branches/one/ < one.dump.8000_pc

-- 
----------------------
Mark S. Reibert, Ph.D.
svn@reibert.com
----------------------

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2391738

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].