On Dec 29, 2006, at 18:27, bruce wrote:
> hi...
>
> i'm creating a process where i'm automatically managing/massaging
> files in
> different repositories...
>
> i'm running into a situation where i might need to checkout a
> folder, change
> the filename(s) in the folder, and check the changes back in to the
> repository. i might need to do this for multiple repositories...
>
> in the even that i go this route, the working copy (wc) is simply a
> throwaway. however, when i attempted this, i got an err stating
> that the wc
> was for another url. i see that i can do a "svn sw" which might work.
If it's a "throwaway", then I suggest you throw it away and not try
to reuse it. I don't believe it's possible to 'switch' between
repositories (just within a repository).
Parenthetically: Identity for repositories is defined in terms of
their UUID, not the URL you happen to use to access them. (It is
possible to use switch to redirect a working to the same repository
but via a different protocol.)
> is there a way to 'force' svn to allow me to use/reuse the same wc
> for my
> repositories...
>
> is there a way for me to 'clear' from svn the names/relationships for
> previous repositories..
>
> i'd like to
> svn co from url to /wctest
> in /wctest, make my rename changes
> do a svn ci /wctest
> do a rm -rf /wctest
> repeat process...
What you've described above seems like a reasonable way to solve the
problem, and doesn't have any need to "reuse", or "clear" your
working copy.
#!/bin/bash
for url in svn://foo/bar \
svn://foo/baz \
svn://foo/qux
do
svn co $url wc
# perform renames. e.g:
cd wc # not sure if this is necessary
svn rename log.txt log-`date +%y%m%d-%H%M%S`.txt
cd ..
svn ci wc
rm -rf wc
done
or something like that.
// ben
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Dec 29 18:51:32 2006