You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Mark Watts <mw...@stny.rr.com> on 2003/05/02 14:44:45 UTC

Subversion Questions/Defects

First, please forgive me if this is the wrong place for this.  The mailing
list description says "The main mailing list for subversion discussion. High
traffic. Everyone welcome", so here I am.  If this is the wrong place please
point me in the right direction.
Second, let me say that I really like Subversion!  I have been keeping my
eye on it for a while now and things it appears that things are far enough
along that I might be able to use it for my revision control needs.  Thanks
for all the hard work.
On to questions/defects/comments:
* I have had problems doing a revert (svn revert) on a directory after
having added sub-directories and files (svn add).  This of course really
screws up any merges that I attempt and I end up having to manually clean
things up.  I seem to remember that a defect might have been entered about
this but I can't seem to find it again.
*  As a user I find it very annoying that a check out (svn co) into a new
working directory leaves all files with the current date time stamp.  As a
contractor I often have to merge files in from customers source repositories
in my local repository I use for their work.  To do this I do a fresh check
out (svn co) from Subversion, then do the equivalent of an update (most
often a 'get') from their repository over the top of my working directory.
However, because I have done this subversion now thinks that most files are
up-to-date because the 'get' sets the timestamps of files to a date in the
past, usually the last date it was edited.  This leaves me with something of
a mess.   As it is right now I am going to have to write a small python
script that will create a database of the current date time stamps of all
the files in a particular revision, check that in and then on a fresh
checkout run the script to reset all the date time stamps to their proper
values.  Quite the hack.  Frankly, there may be some better way to handle
this situation that I am simply not aware of.  If so please point me in the
right direction as I REALLY don't want to do it this way but the other
benefits of subversion are just too good to ignore.  
* I work on the windows platform and so far have been running Subversion
locally.  Having to move back to the drive the repository is not because svn
does not understand file:// commands issued for a repository not on the
current drive is a bit of a pain. Is this going to be addressed by 1.0?
Please understand this is not a huge issue, just a question.
* I just don't get how to merge changes made on the trunk into a 'branch'
used as a private workspace.  It may have been I come from the PVCS world
and frankly to put it nicely I find it one of, if not the most, frustrating
pieces of software I have ever had the opportunity to use.  However, coming
from that background also limits my experience's with some of Subversions
more sophisticated features.  I have read the Subversion book and have spent
some time using it on a test repository but I still find the explanation of
it lacking and I am sorry that I can't be more clear than that.  Perhaps an
example:
  -trunk check in at revision 7
  -branch to create private workspace.  This creates revision 8
  - work continues on the trunk while I am doing lots of work in private
workspace.  Repository revision is now at 25
  -I decide that I need to merge in the changes from the trunk.  Now do I
specify revision 7 from pre branch or 8 where the branch was created?  And
what if I know that I only want to merge in the changes from revision 9 -12
and 14-17.  Revision 13 was a trunk change that I just don't want at this
time and I also don't want other trunk changes after revision 17.  And how
do I merge changes from another branch into my branch, so I can pickup SOME
of the work my co-worker.  I guess just a few more examples would be nice.
If there are some available just point me in the right direction. 
Thanks a lot for your time and patience

-Mark Watts




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


RE: Svn diff crashes computer

Posted by Mark Watts <mw...@stny.rr.com>.
> -----Original Message-----
> From: Sander Striker [mailto:striker@apache.org] 
> Sent: Tuesday, May 06, 2003 17:38
> To: Mark Watts; dev@subversion.tigris.org
> 
> > From: Mark Watts [mailto:mwatts3@stny.rr.com]
> > Sent: Tuesday, May 06, 2003 11:06 PM
> 
> > Twice today will doing a large svn diff my computer has 
> rebooted.  Now 
> > I realize that other things might have caused it but my computer 
> > rarely reboots on its own.  Twice in one day both while 
> running "svn 
> > diff" tends to point to svn.exe
> > 
> > OS: WinXP (SP1) + all critical updates
> > Processor(s): Dual Athlon XP 1900+
> > Memory: 1.5 Gig
> > 
> > Are there any logs that I need to be looking for to figure 
> out what is 
> > going on?
> 
> Can you give me some data on how large the inputs are?

Its diff of almost 5000 files.  These files make up about 171MB of data with
an on disk size of 224 MB.  To get more precise figures I would have to
check out each of the two revisions because, as I forgot to mention (sorry),
the diffs where done against two old revisions in the trunk using two URL's.

Also, subversion version is 0.21 for Windows using a local client (no
svnserve)

Is this what you were looking for?

-Mark  



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


RE: Svn diff crashes computer

Posted by Sander Striker <st...@apache.org>.
> From: Mark Watts [mailto:mwatts3@stny.rr.com]
> Sent: Tuesday, May 06, 2003 11:06 PM

> Twice today will doing a large svn diff my computer has rebooted.  Now I
> realize that other things might have caused it but my computer rarely
> reboots on its own.  Twice in one day both while running "svn diff" tends to
> point to svn.exe
> 
> OS: WinXP (SP1) + all critical updates
> Processor(s): Dual Athlon XP 1900+
> Memory: 1.5 Gig
> 
> Are there any logs that I need to be looking for to figure out what is going
> on?

Can you give me some data on how large the inputs are?

Sander

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Svn diff crashes computer

Posted by Mark Watts <mw...@stny.rr.com>.
Twice today will doing a large svn diff my computer has rebooted.  Now I
realize that other things might have caused it but my computer rarely
reboots on its own.  Twice in one day both while running "svn diff" tends to
point to svn.exe

OS: WinXP (SP1) + all critical updates
Processor(s): Dual Athlon XP 1900+
Memory: 1.5 Gig

Are there any logs that I need to be looking for to figure out what is going
on?

-Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


RE: Subversion Questions/Defects

Posted by Mark Watts <mw...@stny.rr.com>.
> -----Original Message-----
> From: Philip Martin [mailto:pm@nymx02.mgw.rr.com] On Behalf 
> "Mark Watts" <mw...@stny.rr.com> writes:

Phil,
Thanks for your help and I am sorry it has taken so long to respond.  Life
always has a way of intruding :)
 
> > * I have had problems doing a revert (svn revert) on a 
> directory after 
> > having added sub-directories and files (svn add).
> 
> You will have to provide a more complete description here.  
> (Perhaps you just need to use --recursive?)

I did use the --recursive option, however I am no longer able to reproduce
this.  Please ignore until I can provide detailed steps.

> > * I work on the windows platform and so far have been running 
> > Subversion locally.  Having to move back to the drive the 
> repository 
> > is not because svn does not understand file:// commands 
> issued for a 
> > repository not on the current drive is a bit of a pain. Is 
> this going to be addressed by 1.0?
> > Please understand this is not a huge issue, just a question.
> 
> I don't use Windows, but I thought this worked.  Please show 
> the command you typed and the error message it produced.
I was failing to use the proper format for the command.  I either missed it
in the documentation or it is nt there.  Should have been
file:///c:/path/to/repos/

[merge description sniped]

Thank you very much.  This helped clear up a few things for me.  


-Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Subversion Questions/Defects

Posted by Philip Martin <ph...@codematters.co.uk>.
"Mark Watts" <mw...@stny.rr.com> writes:

> * I have had problems doing a revert (svn revert) on a directory after
> having added sub-directories and files (svn add).

You will have to provide a more complete description here.  (Perhaps
you just need to use --recursive?)

> * I work on the windows platform and so far have been running Subversion
> locally.  Having to move back to the drive the repository is not because svn
> does not understand file:// commands issued for a repository not on the
> current drive is a bit of a pain. Is this going to be addressed by 1.0?
> Please understand this is not a huge issue, just a question.

I don't use Windows, but I thought this worked.  Please show the
command you typed and the error message it produced.

> * I just don't get how to merge changes made on the trunk into a 'branch'
> used as a private workspace.  It may have been I come from the PVCS world
> and frankly to put it nicely I find it one of, if not the most, frustrating
> pieces of software I have ever had the opportunity to use.  However, coming
> from that background also limits my experience's with some of Subversions
> more sophisticated features.  I have read the Subversion book and have spent
> some time using it on a test repository but I still find the explanation of
> it lacking and I am sorry that I can't be more clear than that.  Perhaps an
> example:
>   -trunk check in at revision 7
>   -branch to create private workspace.  This creates revision 8
>   - work continues on the trunk while I am doing lots of work in private
> workspace.  Repository revision is now at 25
>   -I decide that I need to merge in the changes from the trunk.

I suggest you use 'svn merge -rX:Y TRUNK_URL wc_path'.  In principle,
running the command 'svn diff -rX:Y SOME_URL' will show you the
changes that merge will incorporate.

>  Now do I
> specify revision 7 from pre branch or 8 where the branch was
> created?

It doesn't matter, TRUNK_URL at revision 7 is the same as TRUNK_URL at
revision 8, try 'svn diff -r7:8 TRUNK_URL'.

>  And
> what if I know that I only want to merge in the changes from revision 9 -12
> and 14-17.

svn merge -r9:12 TRUNK_URL wc_path
svn merge -r14:17 TRUNK_URL wc_path
svn commit wc_path

Perhaps with an 'svn commit' in between the two merges if you want to
record them separately.

>  Revision 13 was a trunk change that I just don't want at this
> time and I also don't want other trunk changes after revision 17.  And how
> do I merge changes from another branch into my branch, so I can pickup SOME
> of the work my co-worker.

svn merge -rX:Y OTHER_BRANCH_URL wc_path
svn commit wc_path

-- 
Philip Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Meaning of "revision" (basis for a BOOK PATCH?)

Posted by Sander Roobol <ph...@wanadoo.nl>.
Filed as issue #1309.

Sander

On Fri, May 02, 2003 at 11:54:50PM +0100, Julian Foad wrote:
> Mark Watts wrote (in thread "Subversion Questions/Defects"):
> >what if I know that I only want to merge in the changes from revision 9 -12
> >and 14-17.  Revision 13 was a trunk change that I just don't want at this
> >time and I also don't want other trunk changes after revision 17.
> 
> This is another example of a very common misunderstanding over the meaning 
> of "revision".
> 
> The English noun "revision" can mean the ACTION of revising something or 
> the RESULT of revising something.  Subversion's convention is normally to 
> use the latter meaning.  In Subversion, a "revision" normally means the 
> "state" or "version" that exists after making a change, not the change 
> itself.
> 
> But sometimes, as in the output of "svn log", a change is explicitly 
> associated with the revision produced by that change.  E.g. part of the 
> output of "svn log -v" in one of my projects is:
> ------------------------------------------------------------------------
> rev 3:  julianfoad | 2003-04-10 21:30:05 +0100 (Thu, 10 Apr 2003) | 1 line
> Changed paths:
>   A /globcomplete/README
> 
> Added README.
> ------------------------------------------------------------------------
> 
> The "Changed paths" section always states the changes from the previous 
> revision.  The user's comment at the end often describes the changes from 
> the previous revision rather than the absolute state of the new revision.  
> So in this situation, the notation "revision 3" is actually referring to 
> the change between revision 2 and revision 3.
> 
> To clarify the relationship between changes and revisions, and the 
> terminology used, here is a chronological sequence of events (+) and 
> descriptions of the current state (-).
> 
> + I create an empty repository to store successive versions of a project.
> 
> - The empty state of the project in the repository is called "revision 0".
> 
> + I add files to my working copy, forming the first non-empty version of my 
> project.
> 
> - My working copy is now different from the repository.  My working copy 
> does not have a revision number to identify it.  Revision numbers are only 
> used to identify revisions that already exist in the repository.
> 
> + I commit my changed working copy to the repository.
> 
> - The state of the project in the repository is called "revision 1".  My 
> working copy is identical to revision 1, and I can say "my working copy is 
> AT revision 1".
> 
> - It is easy to think that the CHANGE that created revision 1 from revision 
> 0 should be called "revision 1"; but that is not so in Subversion.  The 
> change is called "the change between revision 0 and revision 1", 
> abbreviated "r0:1".  The repository contains two revisions (0 and 1), but 
> only one change (r0:1).
> 
> + I change my working copy, by adding, modifying, deleting files or 
> whatever.
> 
> + I commit this change.
> 
> - The state of the project in the repository is called "revision 2".
> 
> - The repository contains three revisions (0,1,2), but only two changes 
> (r0:1 and r1:2).  From revision X to revision Y there are (Y minus X) 
> changes.
> 
> + I decide that revision 2 of the project is worse than revision 1 was, so 
> I add/change/delete files in such a way as to make my working copy 
> identical to revision 1.  I could do this manually, or I could use the 
> command "svn update -r1".
> 
> + I commit this change.
> 
> - My working copy is now identical to revision 1 and also identical to 
> revision 3.  I can say "my working copy is at revision 3", or "is at the 
> head" because the head of the repository is currently revision 3.  I could 
> also say "my working copy is at revision 1" but that is probably not a very 
> useful way to describe it, depending on what I intend to do next.
> 
> - The change from r1 to r2 (diff -r1:2) is reversed by the change from r2 
> to r3, so "diff -r1:3" shows no change.
> 
> - The next time I commit a change, revision 4 will be created, and so on.
> 
> 
> The Subversion book does state the conventions, but probably not strongly 
> or explicitly enough to give a clear understanding to a reader who has not 
> already thought about the ambiguity and possible interpretations.  Perhaps 
> something like the text above could be added near the beginning of the 
> book.  Improvements to this attempt at documentation are welcome.  For 
> example, the addition of "svn log" to the sequence above, and actual 
> commands to turn this sequence into a worked example.
> 
> - Julian
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Meaning of "revision" (basis for a BOOK PATCH?)

Posted by Julian Foad <ju...@btopenworld.com>.
Mark Watts wrote (in thread "Subversion Questions/Defects"):
> what if I know that I only want to merge in the changes from revision 9 -12
> and 14-17.  Revision 13 was a trunk change that I just don't want at this
> time and I also don't want other trunk changes after revision 17.

This is another example of a very common misunderstanding over the meaning of "revision".

The English noun "revision" can mean the ACTION of revising something or the RESULT of revising something.  Subversion's convention is normally to use the latter meaning.  In Subversion, a "revision" normally means the "state" or "version" that exists after making a change, not the change itself.

But sometimes, as in the output of "svn log", a change is explicitly associated with the revision produced by that change.  E.g. part of the output of "svn log -v" in one of my projects is:
------------------------------------------------------------------------
rev 3:  julianfoad | 2003-04-10 21:30:05 +0100 (Thu, 10 Apr 2003) | 1 line
Changed paths:
   A /globcomplete/README

Added README.
------------------------------------------------------------------------

The "Changed paths" section always states the changes from the previous revision.  The user's comment at the end often describes the changes from the previous revision rather than the absolute state of the new revision.  So in this situation, the notation "revision 3" is actually referring to the change between revision 2 and revision 3.

To clarify the relationship between changes and revisions, and the terminology used, here is a chronological sequence of events (+) and descriptions of the current state (-).

+ I create an empty repository to store successive versions of a project.

- The empty state of the project in the repository is called "revision 0".

+ I add files to my working copy, forming the first non-empty version of my project.

- My working copy is now different from the repository.  My working copy does not have a revision number to identify it.  Revision numbers are only used to identify revisions that already exist in the repository.

+ I commit my changed working copy to the repository.

- The state of the project in the repository is called "revision 1".  My working copy is identical to revision 1, and I can say "my working copy is AT revision 1".

- It is easy to think that the CHANGE that created revision 1 from revision 0 should be called "revision 1"; but that is not so in Subversion.  The change is called "the change between revision 0 and revision 1", abbreviated "r0:1".  The repository contains two revisions (0 and 1), but only one change (r0:1).

+ I change my working copy, by adding, modifying, deleting files or whatever.

+ I commit this change.

- The state of the project in the repository is called "revision 2".

- The repository contains three revisions (0,1,2), but only two changes (r0:1 and r1:2).  From revision X to revision Y there are (Y minus X) changes.

+ I decide that revision 2 of the project is worse than revision 1 was, so I add/change/delete files in such a way as to make my working copy identical to revision 1.  I could do this manually, or I could use the command "svn update -r1".

+ I commit this change.

- My working copy is now identical to revision 1 and also identical to revision 3.  I can say "my working copy is at revision 3", or "is at the head" because the head of the repository is currently revision 3.  I could also say "my working copy is at revision 1" but that is probably not a very useful way to describe it, depending on what I intend to do next.

- The change from r1 to r2 (diff -r1:2) is reversed by the change from r2 to r3, so "diff -r1:3" shows no change.

- The next time I commit a change, revision 4 will be created, and so on.


The Subversion book does state the conventions, but probably not strongly or explicitly enough to give a clear understanding to a reader who has not already thought about the ambiguity and possible interpretations.  Perhaps something like the text above could be added near the beginning of the book.  Improvements to this attempt at documentation are welcome.  For example, the addition of "svn log" to the sequence above, and actual commands to turn this sequence into a worked example.

- Julian



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

RE: Subversion Questions/Defects

Posted by Mark Watts <mw...@stny.rr.com>.
> From: Sander Striker [mailto:striker@apache.org] 
> Sent: Friday, May 02, 2003 10:50
> To: Mark Watts; dev@subversion.tigris.org
> 
> > From: Mark Watts [mailto:mwatts3@stny.rr.com]
> > Sent: Friday, May 02, 2003 4:45 PM
> 
> > *  As a user I find it very annoying that a check out (svn 
> co) into a 
> > new working directory leaves all files with the current date time 
> > stamp.  As a contractor I often have to merge files in from 
> customers 
> > source repositories in my local repository I use for their 
> work.  To 
> > do this I do a fresh check out (svn co) from Subversion, 
> then do the 
> > equivalent of an update (most often a 'get') from their 
> repository over the top of my working directory.
> > However, because I have done this subversion now thinks that most 
> > files are up-to-date because the 'get' sets the timestamps 
> of files to 
> > a date in the past, usually the last date it was edited.  
> This leaves me with something of
> > a mess.   As it is right now I am going to have to write a 
> small python
> > script that will create a database of the current date time 
> stamps of 
> > all the files in a particular revision, check that in and then on a 
> > fresh checkout run the script to reset all the date time stamps to 
> > their proper values.  Quite the hack.  Frankly, there may be some 
> > better way to handle this situation that I am simply not 
> aware of.  If 
> > so please point me in the right direction as I REALLY don't 
> want to do 
> > it this way but the other benefits of subversion are just 
> too good to ignore.
> 
> Simply 'touch' all the files you 'get' from the other end?  
> All is well then.

Now, why didn't I think of that?  Been too long a week.  Thanks!

-Mark 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

RE: Subversion Questions/Defects

Posted by Sander Striker <st...@apache.org>.
> From: Mark Watts [mailto:mwatts3@stny.rr.com]
> Sent: Friday, May 02, 2003 4:45 PM

> *  As a user I find it very annoying that a check out (svn co) into a new
> working directory leaves all files with the current date time stamp.  As a
> contractor I often have to merge files in from customers source repositories
> in my local repository I use for their work.  To do this I do a fresh check
> out (svn co) from Subversion, then do the equivalent of an update (most
> often a 'get') from their repository over the top of my working directory.
> However, because I have done this subversion now thinks that most files are
> up-to-date because the 'get' sets the timestamps of files to a date in the
> past, usually the last date it was edited.  This leaves me with something of
> a mess.   As it is right now I am going to have to write a small python
> script that will create a database of the current date time stamps of all
> the files in a particular revision, check that in and then on a fresh
> checkout run the script to reset all the date time stamps to their proper
> values.  Quite the hack.  Frankly, there may be some better way to handle
> this situation that I am simply not aware of.  If so please point me in the
> right direction as I REALLY don't want to do it this way but the other
> benefits of subversion are just too good to ignore.  

Simply 'touch' all the files you 'get' from the other end?  All is well then.


Sander

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org