[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Updating w/ HEAD revision

From: Emmanuel-G BLOT <emmanuel.blot-gnb_at_st.com>
Date: 2004-04-14 10:56:22 CEST

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
Received on Wed Apr 14 10:57:06 2004

This is an archived mail posted to the Subversion Users mailing list.