You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Emmanuel-G BLOT <em...@st.com> on 2004/04/14 08:56:22 UTC

Updating w/ HEAD revision

There's something I do not understand in Subversion behaviour (1.0.0).

I thought, from the documentation, that "svn update afile" (file) will 
update the current  file with the latest commited revision of that file, 
that is the "HEAD" revision.
I'm using the following repository: https://anciens.enib.fr/svn/engine 
in the example below.
Please have a look at the bottom of this email, where SVN output looks 
strange to me.

I have two working copies of the same repository on the very same machine.
First working copy is under my home directory (~/SVN/engine),
Second working copy is under /usr/local

I've edited, commited net_backup.sh of the first WC (in my home directory)
I've moved to /usr/local (second WC) and attemped to perform an update:
  cd /usr/local/anciens
  svn update bin/net_backup.sh
nothing happened
I've tried
  svn status bin/net_backup.sh
and svn reported nothing

What I expected was that net_backup.sh in /usr/local/anciens/bin, using 
revision 3 would be updated to the last revision, numbered 12.
Nothing happened.

I've tried "svn info" command on both WC, and the results are printed below.
What am I missing, what did I not understand from Subversion ??

I finally got the last revision updated into the second repository by 
using an explicit revision option:
   svn update -r HEAD bin/net_backup.sh

I do not undersant why it works with this explicit revision and not 
without specifying a revision, as svn update states:
  svn update --help
    update (up): Bring changes from the repository into the working copy.
    usage: update [PATH...]

    *If no revision given, bring working copy up-to-date with HEAD rev.*
    Else synchronize working copy to revision given by -r.

Best Regards,
Emmanuel


eblot@anciens:/usr/local/anciens
$> svn info ~/SVN/engine/trunk/anciens/bin/net_backup.sh
Path: /home/eblot/SVN/engine/trunk/anciens/bin/net_backup.sh
Name: net_backup.sh
URL: https://anciens.enib.fr/svn/engine/trunk/anciens/bin/net_backup.sh
Repository UUID: 7b87c0b6-95d7-0310-b6b3-dde8a7ec4f7e
Revision: 12
Node Kind: file
Schedule: normal
Last Changed Author: eblot
Last Changed Rev: 12
Last Changed Date: 2004-04-14 00:53:42 +0200 (Wed, 14 Apr 2004)
Text Last Updated: 2004-04-14 00:53:15 +0200 (Wed, 14 Apr 2004)
Properties Last Updated: 2004-04-13 00:30:34 +0200 (Tue, 13 Apr 2004)
Checksum: 28fc46aff94fa09a2a7c921256186c3f

eblot@anciens:/usr/local/anciens
$> svn info bin/net_backup.sh
Path: bin/net_backup.sh
Name: net_backup.sh
URL: https://anciens.enib.fr/svn/engine/trunk/anciens/bin/net_backup.sh
Repository UUID: 7b87c0b6-95d7-0310-b6b3-dde8a7ec4f7e
Revision: 8
Node Kind: file
Schedule: normal
Last Changed Author: eblot
Last Changed Rev: 3
Last Changed Date: 2004-04-12 13:41:37 +0200 (Mon, 12 Apr 2004)
Text Last Updated: 2004-04-12 21:53:38 +0200 (Mon, 12 Apr 2004)
Properties Last Updated: 2004-04-12 21:53:38 +0200 (Mon, 12 Apr 2004)
Checksum: 76ca6ebda18d4e520b082be81cf60139

$> svn list -v .
     (other files)
     12 eblot          4388 Apr 14 00:53 net_backup.sh
     (other files)


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

Re: Updating w/ HEAD revision

Posted by Ben Collins-Sussman <su...@collab.net>.
Emmanuel-G BLOT wrote:

> I will try, I just don't know if I'm able to reproduce it.
> In the event this trouble repeats, is there any command I can run to 
> grab more info, in order to submit it to this ML ?

You can run 'svn status -v'.

But the most valuable thing is to write a recipe for reproduction, so 
that we can witness the problem ourselves.

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

Re: Updating w/ HEAD revision

Posted by Emmanuel-G BLOT <em...@st.com>.
> That makes no sense, I agree.  I've never seen such a behavior before.

Ok, maybe a bug ?

> Can you reproduce the behavior somehow?  I've never seen this behavior 
> before, nor have I heard anyone report it, nor can I reproduce it.

I will try, I just don't know if I'm able to reproduce it.
In the event this trouble repeats, is there any command I can run to 
grab more info, in order to submit it to this ML ?

Regards,
Manu


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

Re: Updating w/ HEAD revision

Posted by Ben Collins-Sussman <su...@collab.net>.
Emmanuel-G BLOT wrote:

> What I expected was that net_backup.sh in /usr/local/anciens/bin, using 
> revision 3 would be updated to the last revision, numbered 12.
> Nothing happened.

That makes no sense, I agree.  I've never seen such a behavior before.

> I finally got the last revision updated into the second repository by 
> using an explicit revision option:
>   svn update -r HEAD bin/net_backup.sh

There's no difference between 'svn up target' and 'svn up -rHEAD 
target'.  They're exactly the same, so again, I agree, this makes no sense.

Can you reproduce the behavior somehow?  I've never seen this behavior 
before, nor have I heard anyone report it, nor can I reproduce it.



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