You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Robert <ro...@gmx.de> on 2003/11/26 16:31:35 UTC
updating a file in repository
Hello.
Since nobody answered my question last week I try to explain my problem
in different words. But maybe it was my mail program, I have funny
follow up displays here:(
I have a file in my repository which I want to update from a location
which is not a working copy (yet).
Formerly I used to enter:
svn checkout http://myIP:port/svn/pathtofile/file .
The space+dot told svn not to get any files but to create a working
copy. Today I noticed that this doesn't work anymore. Does my
rememberance fool me or is that changed behavior? svn creates a working
copy but overwrites my local (new) file.
Any hints?
Greetings,
Robert
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: updating a file in repository
Posted by Ben Collins-Sussman <su...@collab.net>.
On Wed, 2003-11-26 at 14:58, Ben Collins-Sussman wrote:
> > Well, and what do I have to do to commit a new revision (to update my
> > file in the repository) from a local folder which is not under svn
> > control?
>
> You can't do this. The smallest "unit" of versioned-controlled data is
> a directory, not a file. It's possible to have a single file under
> version control.
Ugh, stupid typo. I meant, it's *not* possible to have a single file
under version control.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: updating a file in repository
Posted by Ben Collins-Sussman <su...@collab.net>.
On Wed, 2003-11-26 at 14:40, Robert wrote:
> Am 26.11.2003 um 17:34 schrieb C. Michael Pilato:
> >
> > If that ever behaved as you say, it was just a pathetic bug. We've
> > never made such a promise.
> >
>
> Well, and what do I have to do to commit a new revision (to update my
> file in the repository) from a local folder which is not under svn
> control?
You can't do this. The smallest "unit" of versioned-controlled data is
a directory, not a file. It's possible to have a single file under
version control.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: updating a file in repository
Posted by Robert <ro...@gmx.de>.
Am 26.11.2003 um 17:34 schrieb C. Michael Pilato:
>
> If that ever behaved as you say, it was just a pathetic bug. We've
> never made such a promise.
>
Well, and what do I have to do to commit a new revision (to update my
file in the repository) from a local folder which is not under svn
control?
On Linux and Mac OS X (OpenBSD Unix)
Thankj you for help.
Greetings,
Robert
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: updating a file in repository
Posted by "C. Michael Pilato" <cm...@collab.net>.
Robert <ro...@gmx.de> writes:
> Formerly I used to enter:
>
> svn checkout http://myIP:port/svn/pathtofile/file .
>
> The space+dot told svn not to get any files but to create a working
> copy.
If that ever behaved as you say, it was just a pathetic bug. We've
never made such a promise.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: updating a file in repository
Posted by Francois Beausoleil <fb...@users.sourceforge.net>.
Hello Robert,
The best way to help you is to checkout your old version into any path,
then move the .svn folder to your new location.
For instance, let's say that on your first machine, you had folder
/usr/local/httpd/conf under revision control. After reformatting, you
install Apache again, and now you want your httpd.conf to be stored in
your repos. Do the following sequence:
$ pwd
/tmp
$ svn checkout file:///path/to/repos/path/to/httpd/conf/root
$ mv root/.svn /usr/local/httpd/conf
$ cd /usr/local/httpd/conf
$ svn status
M httpd.conf
Hope that helps,
François
On Fri, 28 Nov 2003 11:39:55 +0100, "Robert" <ro...@gmx.de> said:
>
> Am 26.11.2003 um 17:31 schrieb Robert:
>
> > I have a file in my repository which I want to update from a location
> > which is not a working copy (yet).
>
> Ok. I have a folder containing one file. I checked it into my
> repository. Say this file is my first version of httpd.config.
>
> Now I formatted my HD and installed a new linux version. I manually
> created a new httpd.config locally and I want to add it to my
> repository as second version of that httpd.config.
>
> Obviously I have to make my new local folder a working copy (put under
> svn control). But I don't wan't svn to overwrite my second version with
> the first version when checking out.
>
> I am quite shure that did work in 0.28 or 0.26. I used it a lot.
>
> When this feature is removed, can I have it back? I mean the syntax:
> svn checkout http://IP:Port/path_to_my_file/ .
>
> when it just put then uncontrolled local folder under svn control but
> does not get any files out of the repository ?
>
> It was very useful.
>
> For the moment, is there a workaround I could use right now?
>
> Thank you for help!
> Robert
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>
Developer of Java Gui Builder
http://jgb.sourceforge.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: updating a file in repository
Posted by Robert <ro...@gmx.de>.
Am 26.11.2003 um 17:31 schrieb Robert:
> I have a file in my repository which I want to update from a location
> which is not a working copy (yet).
Ok. I have a folder containing one file. I checked it into my
repository. Say this file is my first version of httpd.config.
Now I formatted my HD and installed a new linux version. I manually
created a new httpd.config locally and I want to add it to my
repository as second version of that httpd.config.
Obviously I have to make my new local folder a working copy (put under
svn control). But I don't wan't svn to overwrite my second version with
the first version when checking out.
I am quite shure that did work in 0.28 or 0.26. I used it a lot.
When this feature is removed, can I have it back? I mean the syntax:
svn checkout http://IP:Port/path_to_my_file/ .
when it just put then uncontrolled local folder under svn control but
does not get any files out of the repository ?
It was very useful.
For the moment, is there a workaround I could use right now?
Thank you for help!
Robert
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org