Re: Migrating to a new repository
From: Laker Netman <laker_netman_at_yahoo.com>
Date: Fri, 30 May 2008 22:11:04 -0700 (PDT)
----- Original Message ----
On May 30, 2008, at 08:49, Laker Netman wrote:
> Ryan Schmidt wrote:
>>>Can you give me an example?
Sure.
>>>As I see it, I imagine you have repo A which contains directories 1,
Say Repo A currently has Directory 1 which contains .TIF and .JPG files, all of which are under version control. Now I want to move Directory 1 to a new repo called B, and I only want .JPG files version controlled, but I want all of the .TIFs copied from A to B as well. Directory 1 may have subdirectories that the same rule would apply to also. All of the directories need to be moved; some of the files will remain versioned, others won't, but still need to be copied over.
I re-read svnbook Chapter 3's section on "Ignoring Unversioned Items", and I think I might have found a possible solution. Though the documentation presents the following (seemingly) contradictory information (more like a rule and an exception, I guess). Paragraph 5 says: "And it's worth noting again that, unlike the global-ignores option, the patterns found in the svn:ignore property apply only to the directory on which that property is set, and not to any of its subdirectories." Fair enough. However, the final paragraph includes this: "Subversion uses the ignore patterns—both the global and the per-directory lists [svn:ignore?]—to determine which files should not be swept into the version control system as part of a larger recursive addition or import operation." So, I guess SVN does use a the svn:ignore list set on the root of a repository when doing an initial import?
If that's the case, then I should be able to just export Repo A, create an empty Repo B, create an svn:ignore list for the repo root, then do an import? However, does this automatically create the svn:ignore property (populated with the list of items to ignore) on the subdirectories pulled in from the import (paragraph 5 suggestions it wouldn't)? I guess I could roll my own property copying tool with Perl and the "svn" command, but it seems like there should be something easier.
Laker
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.