SVN 用戶端未更新工作副本中的文件

SVN 用戶端未更新工作副本中的文件

在我更新 WC(工作副本)後,其中一個文件仍然是舊版本。

如下所示,svn info指令顯示檔案 getOdSum.php 的最後更改版本是 403 svn list

host:~# svn info /srv/www/htdocs/services/getOdSum.php
Path: /srv/www/htdocs/services/getOdSum.php
Name: getOdSum.php
Working Copy Root Path: /srv/www
URL: http://blah/www/htdocs/services/getOdSum.php
Repository Root: http://blah
Repository UUID: e8d72a91-f4c2-7648-b7bf-ec66f57ea273
Revision: 593
Node Kind: file
Schedule: normal
Last Changed Author: dlopez
Last Changed Rev: 403
Last Changed Date: 2018-03-14 18:30:53 +0000 (Wed, 14 Mar 2018)
Text Last Updated: 2018-04-23 19:12:59 +0000 (Mon, 23 Apr 2018)
Checksum: bc9b7ff245aadd45cacc1d11377a0227a08dfe6a

此指令svn list顯示儲存庫中最後變更的修訂版是 537:

host:~ # svn list /srv/www/htdocs/services/ --verbose
Authentication realm: <http://blah> SVN Repository
Password for 'dlopez':
    537 dlopez                May 07 20:01 ./
    419 dlopez           1920 Jul 12  2018 getLastMan.php
    537 dlopez          11450 May 07 20:01 getOdSum.php
    383 dlopez             19 Aug 18  2017 info.php
(...)

當然,之前我嘗試過以下指令(其中 /srv/www 是 WC 根目錄)

host:~ #svn cleanup /srv/www

host:~ # svn update /srv/www
Updating '/srv/www':
Authentication realm: <http://blah> SVN Repository
Password for 'dlopez':
At revision 593.

host:~ # svn update /srv/www/htdocs/services/getOdSum.php
Updating '/srv/www/htdocs/services/getOdSum.php':
Authentication realm: <http://blah> SVN Repository
Password for 'dlopez':
At revision 593.

是我做錯了什麼還是客戶端的錯誤?它很舊:

host:~ # svn --version
svn, version 1.7.13 (r1516569)

Copyright (C) 2013 The Apache Software Foundation.
This software consists of contributions made by many people; see the NOTICE
file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - handles 'http' scheme
  - handles 'https' scheme

我透過重新命名 WC 並在新的 WC 中進行新的結帳來解決了這個問題,但了解這個問題會很好。

相關內容