gpt4 book ai didi

svn - Subversion 存储库中的 '/db/txn-current' 为空或不存在

转载 作者:行者123 更新时间:2023-12-01 07:20:15 25 4
gpt4 key购买 nike

我遇到了 Apache Subversion 存储库的问题,我正在寻找 最佳 解决方案:

我无法提交到 Subversion 存储库,并且出现错误:

svn: E720002: Commit failed (details follow): svn: E720002: Can't open file 'C:\Repositories\myproject\db\txn-current': The system cannot find the file specified.



如果我创建一个空的 txn-current 文件,是否会在提交时出现另一个错误:

svn: E070014: Commit failed (details follow): svn: E070014: Can't read file 'C:\Repositories\myproject\db\txn-current': End of file found



注意: 假设我没有存储库的备份,因此我必须手动修复该问题。

StackOverflow 上已经讨论了相同的行为: svn commit problem, Cannot read 'd:\UC\db\txn-current': End of file found 。但是我怀疑那里的答案是否真的有帮助:
  • 我不认为手动创建 \db\txn-current 并将 0 放在那里(或任何其他整数)是一个很好的解决方案。我想它可能会在不久的将来导致一些意想不到的行为,
  • svnadmin recover 和/或 svnadmin verify 不创建和/或填充 txn-current 。这些命令在这种情况下是无能为力的。

  • 根据 FSFS description \db\txn-current 文件包含下一个交易 key 号。如果我将一些整数放入文件,那么我可以提交并且整数将增加 1。

    然而,看起来像放置一些不相关的整数会破坏我的 repo 中的某些东西,我不希望这种情况发生。

    The "txn-current" file is a file with a single line of text that contains only a base-36 number. The current value will be used in the next transaction name, along with the revision number the transaction is based on. This sequence number ensures that transaction names are not reused, even if the transaction is aborted and a new transaction based on the same revision is begun. The only operation that FSFS performs on this file is "get and increment"; the "txn-current-lock" file is locked during this operation.



    我该怎么做才能正确修复 \db\txn-current 问题?我应该在文件中放入什么整数?有没有其他方法可以解决这个问题?

    编辑:
  • 除了 db/current 文件,我如何解决相同的问题(不存在或为空)?
  • 最佳答案

    我有类似的问题。为了解决,我编辑了'txn-current'文件,在里面放了一些大数字,比如xxxxx。与此同时,我不得不在“db\transactions”文件夹中编辑另一个名为“current”的文件。我从这个文件中删除了所有内容,只是添加了一个输入并关闭了这个文件。

    关于svn - Subversion 存储库中的 '/db/txn-current' 为空或不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13031544/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com