问题标签 [darcs]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
git - 将 darcs 存储库转换为具有多个分支的 git
有没有办法将具有多个分支的 darcs 项目(即,两个以上包含不同但相关的补丁集的 darcs 存储库)转换为单个 git 存储库,以便将每个 darcs 存储库转移到 git 存储库中的不同分支?
考虑的解决方案:
(1) darcs convert 命令提供了两种将 darcs 导出到 git 的方法:
一个。一次性出口:
这只转换一个仓库,一个分支。
湾。使用标记文件增量导出(维护 darcs 存储库的 git 镜像):
使用 (b),如果我只有一个其他 darcs repo 作为分支,我可能希望继续
然后重复该darcs convert export
步骤。
但是对于另外两个分支,这似乎不太可能奏效,因为拉动 ../repo-branch2 会将分支 1 和分支 2 的补丁合并在一起。
(2) Darcs-bridge [2]。不完整,自 2013 年以来未维护,并且“仍命名为 darcs-fast-convert”,仅推荐用于任一方向的一次性转换(darcs->git 或 git->darcs)
darcs-bridge 页面本身 [2] 建议使用 darcs 2.10 中内置的“darcs convert”命令。
但是,它可以处理分支(有一些工作):
请参阅 [2] 中的用例 2:
这将创建具有两个分支的 git 存储库: (darcs) myproject -> (git) master (darcs) myproject-branch1 -> (git) myproject-branch1 具有公共前缀,但未检测到合并。
[2] 中的用例 5 描述了一种更改 darcs-bridge 管理的分支列表的方法。
“有什么限制?” 和“什么需要工作?” 在 [2] 中似乎在说(我很难理解)darcs 合并没有正确转换,除非使用特殊标记——标记必须在合并之前完成,所以现在我不可能这样做。
(3)darcs-fastconvert(darcs-bridge基于):根据[2],没有管理多个分支
(4) darcs-to-git:acc。到[2],不支持分支
(5)darcs2git:acc。到[2],不支持分支
(6) 裁缝:acc。到 [2],不支持分支,已停止支持 darcs-fastconvert
参考:
[1] Darcs-Convert:http ://darcs.net/Using/Convert )
[2] Darcs-Bridge: http://darcs.net/DarcsBridgeUsage )
git - 处理备份数据库的最佳 vcs
目前,我们正在使用 git 来备份我们的数据库。我知道有很多理由不这样做,但这不是这篇文章的主题。我们需要这样做并且我们会这样做(我们有充分的理由这样做)。然而,问题是 git 不能很好地处理大文件,我们不能再推送任何东西,因为 git 内存不足。我想知道是否有任何 git 替代品(hg,darcs?)更适合这个目的。
darcs - Tracking down dependencies in darcs
I am using darcs at work for over a year now, but I keep asking myself the same question:
What is the best way to track down the code line/file/code change that is causing a dependency between two patches? For now my way of doing this is as follows:
I check which files the two patches affect using
darcs changes -i
and typingx
for the appropriate patches.I check which files are affected by both patches.
I guess which file is causing the dependency and by using
darcs amend --unrecord
I remove changes to this file from both patches.I check whether the dependency is resolved and add the changes back to the patches, while constantly checking whether the dependency reoccured or not and thereby tracking down the part of the code that is causing the dependency.
This trial and error technique of finding the code line/file that causes the dependency takes a lot of time. There must be an easier way to do this, am I missing something? Thanks in advance!
darcs - 在 Darcs 中,查看两个补丁之间的差异
在 Git 中,我可以通过运行以下命令来查看两个提交之间的差异:
我如何在 Darcs 中做到这一点?
在我尝试过的用户手册第 5.10.1 节之后:
但这给出了错误:
使用完整补丁哈希时出现类似错误。
version-control - 在darcs中,如何只查看更改文件的名称
该命令$ darcs whatsnew
列出工作树中未记录的更改。然而,更改的完整列表通常过于混乱,无法在一个屏幕中查看哪些文件已更改。
如何仅列出已更改文件的名称?
在git
我通过$ git diff --name-only
.
installation - 无法通过 Nix 安装 darcs
刚开始使用 Nix(2.2.1 版),在安装 darcs(2.14.1 版)时遇到了第一个问题:我收到以下错误消息(前面是调用堆栈):
我安装了 haskell 工具堆栈以及全局 ghc(尽管我认为构建 darcs 不需要两者)。
使用“apt”安装 darcs 也没有问题
我是在犯一个经典的 nix 初学者错误还是这里发生了什么?