日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

svn文件丢失的解法

發(fā)布時(shí)間:2025/5/22 编程问答 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 svn文件丢失的解法 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

轉(zhuǎn)自:http://triopter.com/archive/resolving-local-delete-incoming-delete-upon-update-subversion-tree-conflicts/

?

NOTE: I’ve noticed a lot of traffic to this page for “l(fā)ocal edit incoming delete on update” errors, which are not what this article is about (the solution below may or may not work for that — I have no idea). This article is about “l(fā)ocal delete , incoming delete on update” errors. Always back up your work before you muck around with something like this, but that goes doubly if you’re going to try to use these instructions for the “l(fā)ocal edit” error.

For reason I’m still trying to untangle, I encountered some really terrible conflicts this afternoon with an SVN checkin that didn’t complete properly, leaving me with a few locked directories that wouldn’t respond to “svn cleanup”.

Using these instructions , I was able to get the directories sorted out:

  • Move offending directories out of working copy and to a safe place (e.g. desktop)
  • Run svn cleanup
  • Run svn up
  • This actually restored the messed-up directories. Some files were reverted and some deleted files restored; once the entire working copy is cleaned up, you can use the backup copies of the directories to copy back in your changes.

    But before I could do that, I was left with a half-dozen individual file conflicts with the following messages:


    $ svn st
    ? C some_file.php
    > local delete, incoming delete upon update
    ? C some_other_file.php
    > local delete, incoming delete upon update
    ... etc.

    Thankfully, these were files that I did want to delete, so even without instructions I wasn’t afraid to trial-and-error my way to the following fix:


    $ touch some_file.php some_other_file.php
    $ svn revert some_file.php some_other_file.php

    Once you’ve created the files, SVN can revert them, which leaves them in unversioned status:


    $ svn st
    ? some_file.php
    ? some_other_file.php

    And then you can just delete them from the command line or whatever file manager you use.

    *Phew*

    Once that was done I redid some deletions that had been overwritten by the update that cleaned up the directories, and all was right in the world.

    Usual disclaimers, YMMV, etc.

    總結(jié)

    以上是生活随笔為你收集整理的svn文件丢失的解法的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

    如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。