From users-return-27341-archive-asf-public=cust-asf.ponee.io@subversion.apache.org Tue Jul 24 22:00:27 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id D817B180626 for ; Tue, 24 Jul 2018 22:00:26 +0200 (CEST) Received: (qmail 88584 invoked by uid 500); 24 Jul 2018 20:00:25 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 88569 invoked by uid 99); 24 Jul 2018 20:00:25 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2018 20:00:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id AA58EC21BF for ; Tue, 24 Jul 2018 20:00:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.798 X-Spam-Level: X-Spam-Status: No, score=0.798 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Ol_ShyMSR4KV for ; Tue, 24 Jul 2018 20:00:22 +0000 (UTC) Received: from smtp1.lauterbach.com (smtp1.lauterbach.com [62.154.241.196]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 53D715F30E for ; Tue, 24 Jul 2018 20:00:22 +0000 (UTC) Received: (qmail 29019 invoked by uid 484); 24 Jul 2018 20:00:14 -0000 X-Qmail-Scanner-Diagnostics: from dslb-094-216-051-192.094.216.pools.vodafone-ip.de by smtp1.lauterbach.com (envelope-from , uid 484) with qmail-scanner-2.11 (mhr: 1.0. clamdscan: 0.99/21437. spamassassin: 3.4.0. Clear:RC:1(94.216.51.192):. Processed in 0.357182 secs); 24 Jul 2018 20:00:14 -0000 Received: from dslb-094-216-051-192.094.216.pools.vodafone-ip.de (HELO [192.168.178.42]) (Authenticated_SSL:fsirl@[94.216.51.192]) (envelope-sender ) by smtp1.lauterbach.com (qmail-ldap-1.03) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 24 Jul 2018 20:00:13 -0000 Subject: Re: Some files stay at an too new revision when updating the working copy to an old revision To: users@subversion.apache.org References: <2d3d435d-f608-329c-f16e-e84377e7a96c@lauterbach.com> <1d91e9fc-e980-547f-c200-453bbbd63f5d@apache.org> <3359ec8b-4ccf-9afc-2704-56cbd600e5fe@lauterbach.com> <2c591bf0-9c69-1f8f-ea27-3d2b96949563@lauterbach.com> From: Franz Sirl Message-ID: <89baabfb-7cc8-8f86-7e9d-4e0844c3a87c@lauterbach.com> Date: Tue, 24 Jul 2018 22:00:13 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <2c591bf0-9c69-1f8f-ea27-3d2b96949563@lauterbach.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 8bit Am 2018-07-21 um 16:27 schrieb Franz Sirl: > Am 2018-07-20 um 16:46 schrieb Franz Sirl: >> Am 2018-07-20 um 15:55 schrieb Branko Čibej: >>> On 20.07.2018 15:37, Franz Sirl wrote: >>>> Hi, >>>> >>>> this already happened a few times here, but now I managed to re-create >>>> it reliably. >>>> This happens at least on Linux with subversion-1.8/subversion-1.10 and >>>> on Windows >>>> with TortoiseSVN-1.9, didn't test older versions yet. Server is >>>> subversion-1.9.5 >>>> on Linux, a "svnadmin verify" of a repository hotcopy showed no >>>> problems >>>> >>>> This slightly obfuscated transcript shows the problem: >>>> >>>> --> >>>> $ rm -rf myrepo.wc >>>> $ svn co https://svnserver/svn/myrepo/trunk/some/path/src myrepo.wc/ >>>> ... >>>> Checked out revision 98863. >>>> $ svn status --verbose myrepo.wc/mysrc[34].c >>>>               98867    93474 user1        myrepo.wc/mysrc3.c >>>>               98867    87357 user2        myrepo.wc/mysrc4.c >>>> $ svn up -r 85950 myrepo.wc >>>> ... >>>> At revision 85950. >>>> $ svn status --verbose myrepo.wc/mysrc[34].c >>>>               85950    93474 user1        myrepo.wc/mysrc3.c >>>>               85950    83501 user3        myrepo.wc/mysrc4.c >>>> --< >>>> >>>> As you can see, mysrc3.c has a too high last_commit revision and also >>>> the content >>>> of the file is too new after the first downgrading with "svn up -r >>>> 85950 myrepo.wc". >>> >>> This does look strange. >>> >>> Is myrepo.wc/mysrc3.c a file external by any chance? Try: >>> >>> $ svn propget svn:externals --show-inherited-props myrepo.wc >> >> This command returns empty. There doesn't seem to be anything special >> about this file, except that it is one of the oldest in the >> repository. It was imported from CVS with history in 2005 >> (subversion-1.2), but so was mysrc4.c. Also there have been not any >> properties set to the parent directory ever AFAICS. >> >>> >>> If it isn't could you show us an (obfuscated) log of that file? >>> >>> $ svn log --verbose -r93474:85950 myrepo.wc/mysrc3.c >> >> ------------------------------------------------------------------------ >> r93474 | user1 | 2018-02-07 16:21:20 +0100 (Wed, 07 Feb 2018) | 9 lines >> Changed paths: >>     M /trunk/some/path/src/mysrc-defines.h >>     M /trunk/some/path/src/mysrc1.c >>     M /trunk/some/path/src/mysrc3.c >>     M /trunk/some/path/src/mysrc5.c >>     M /trunk/some/path/src/mysrc6.c >> >> ChangeLog... >> ------------------------------------------------------------------------ >> r87225 | user2 | 2017-08-03 11:28:11 +0200 (Thu, 03 Aug 2017) | 1 line >> Changed paths: >>     M /trunk/some/path/src/mysrc-defines.h >>     M /trunk/some/path/src/mysrc1.c >>     M /trunk/some/path/src/mysrc3.c >>     M /trunk/some/path/src/mysrc5.c >>     M /trunk/some/path/src/mysrc6.c >> >> ChangeLog... >> ------------------------------------------------------------------------ >> r87201 | user1 | 2017-08-02 16:58:50 +0200 (Wed, 02 Aug 2017) | 14 lines >> Changed paths: >>     M /trunk/some/path/src/mysrc-defines.h >>     M /trunk/some/path/src/mysrc1.c >>     M /trunk/some/path/src/mysrc3.c >>     M /trunk/some/path/src/mysrc5.c >>     M /trunk/some/path/src/mysrc6.c >> >> ChangeLog... >> ------------------------------------------------------------------------ > > Actually I think I was able to narrow down the reason for the wrong > last_commit revision. Some further investigation showed that the actual > content of the working copy is correct, so only the last_commit revision > of mysrc3.c in the database is wrong. > Looking at the details of the changes r87201, r87225 and r93474 of > mysrc3.c shows that they are actually adding some lines, change them and > then delete them again. That means the diff between r83501 and r93474 is > actually empty. And it seems that in this case subversion misses to > update the last_commit revision of mysrc3.c in the database. It turns out this is probably issue #4700 which for some reason was never approved for the 1.9 branch, even though it was already nominated last October. So the version that matters here is the server version. After I upgraded the server from 1.9.5 to 1.10.2 the problem is gone (regardless of the client version) and all is well now. Thanks, Franz