![](/img/trans.png)
[英]Why is the file I expect to be present missing after the final merge commit in Mercurial?
我在工作中遇到了 Mercurial 的情況,我希望文件存在,但它不存在,我想更好地理解原因。 我已經整理了這個問題的重現。 在此重現中,我希望文件 foo.txt 在最終合並后默認存在,因為合並的一個父級不存在該文件,因為它較早被刪除,而另一個父級由於提交而將其添加回去那是在刪除文件的提交之后發 ...
[英]Why is the file I expect to be present missing after the final merge commit in Mercurial?
我在工作中遇到了 Mercurial 的情況,我希望文件存在,但它不存在,我想更好地理解原因。 我已經整理了這個問題的重現。 在此重現中,我希望文件 foo.txt 在最終合並后默認存在,因為合並的一個父級不存在該文件,因為它較早被刪除,而另一個父級由於提交而將其添加回去那是在刪除文件的提交之后發 ...
[英]Mercurial command-line on Windows does not respond to pager environment variables (and fails to use a pager at all)
當我運行hg log等命令時,我希望在尋呼機中看到 output。 我已經將我的存儲庫.hg\hgrc配置為使用less : 我已經確認less已正確安裝,因為我能夠運行它。 我還通過hg config --debug確認此環境設置已正確注冊: 但是,output 被轉儲到終端中。 這是一個主要的 ...
[英]Adding layer to mercurial directory
我有一個 Mercury 存儲庫,我需要將目錄從/animal/dog/重命名為/animal/mammal/dog/ 。 所以我做了 但是我收到一條錯誤消息中止:目標 /animal/mammal/dog/ 不是目錄我如何讓它發揮作用? 上面的步驟是我試過的。 ...
[英]Pass file list to Mercurial 'hg add' command from text file
我正在嘗試在 Win 10 上使用“hg add”將大約 40k 文件添加到 Mercurial。由於下游限制,我需要將其分成 10k 文件塊用於每次添加/提交,因此我需要傳遞大量文件汞添加。 但是我遇到了Window 的命令行參數字符限制。 有沒有辦法將存儲在文件中的文件列表傳遞給 hg add? ...
[英]Mercurial - how to retrieve orig file after a revert?
我不小心運行了hg revert並丟失了對文件foo.js的所有更改。 我看到該文件的備份作為foo.js.orig存在。 我怎樣才能重新添加原始文件,以便恢復我的更改? 更新:我使用hg add foo.js.orig將文件添加回來,但是如何用原始foo.js.orig文件替換現有的foo.js ...
[英]Git does not recognise files with umlauts correctly on Windows 11 after migration from Mercurial
我嘗試在 Git Bash 中通過以下方式從 Mercurial 存儲庫遷移到 Windows 11 上的 Git: 遷移成功,需要以下內容 這應該會導致存儲庫沒有任何更改。 但是我得到的是以下內容: 所以它看起來像“Folder1/grünes-Ding.png”被刪除然后重新添加。 如果我嘗試恢 ...
[英]Committed and pushed incorrect revision in TortoiseHg
我不小心提交並推送了不正確的修訂,想知道是否有辦法撤消更改? 我在 TortoiseHg 中使用了回滾功能,但我認為在推送提交時它不起作用。 推送目標是發布服務器。 雙方都沒有進化擴展。 我打算使用回退或恢復所有文件,但我不知道哪個更適合使用。 ...
[英]Rewriting non-linear history in Mercurial / Hg?
我想隱藏一個拓撲頭(剩余的不包括在特征分支的合並中)而不破壞歷史圖。 常見的解決方案是將關閉分支提交合並回default ,但這為具有 10 年歷史長度的歷史增加了額外的優勢(損壞hg glog )。 我想重寫項目歷史並在歷史集成合並到default之前包括關閉提交。 似乎https://www. ...
[英]TortoiseHG (Mercurial) - Push branch = abort: push creates new remote head
我關閉了 Tortoise 中的一個公共分支並想推送更改,但我收到此錯誤: 中止:推送在分支“4.4.72”上創建新的遠程頭 2756e9fac9ea! ...
[英]How can I filter tortoisehg (Mercurial) to not show branches containing part of a string?
我們的 Mercurial/HG 存儲庫有相當多的 wip 功能分支,我希望能夠創建一個更清晰的視圖並過濾掉包含部分字符串的任何分支。 我知道我可以指定要顯示的分支,但我更希望能夠設置排除的搜索字符串,因為所有這些分支都包含類似feature_xx的內容有點像: not branch_contai ...
[英]Why different results of revsets received?
修訂集 1 結果 修改集 2 相同(看起來如此)的邏輯,更少的代碼 結果 ...
[英]How do I get SourceTree my credentials for a custom Mercurial endpoint?
我一直試圖讓 SourceTree 與我公司的 Mercurial 遠程存儲庫進行通信,但我似乎失敗了。 在命令行上,我可以讓hg pull正常工作(它可以毫無問題地使用我的 id_rsa 私鑰進行身份驗證),但是當我嘗試通過 UI 拉取時,它只是旋轉。 我有一個嵌入式 Mercurial 安裝以 ...
[英]Weird mercurial Graph
我正在嘗試解釋 mercurial 存儲庫和更具體的圖形。 大部分發生的事情對我來說都很清楚,但是有兩個地方我需要一些幫助來理解發生的事情。 問題 A:“mq” 問題 1:變更集 92 的含義是什么。這是否與 git 中的倒帶提交相當? 問題 2: mq在這種情況下是什么意思? 問題 B:與父母不匹 ...
[英]Mercurial: How can I change default tag message template?
我想在提交消息中使用一些前綴標簽,以便在查看修訂日志時快速識別提交類型,並能夠快速過濾日志。 我打算使用的一些前綴是( TAG:、MERGE:、TEST:、STABLE:、TRUE-UP:、FIX():、FEATURE():,可能還有其他)。 此外,對於標簽,我想將默認消息更改為更具描述性,如下所 ...
[英]Extra directory can be created in hg rename-ing directory
我嘗試通過hg rename <orig-dir> <dest-dir>包含 largefile-normal 混合的目錄,結果如下: orig/foo.png (大文件) → dest/orig/foo.png orig/bar.txt (正常) → dest/bar. ...
[英]mercurial (hg) equivalent of git describe --contains <commit> to find tag that has <commit> as an ancestor in its history
我正在嘗試使用 mercurial 給我包含特定提交的標簽,就像git describe --contains ,如文檔中所述: hg log -r <rev> --template '{latesttag}\n'不符合要求,因為它返回可從<rev>訪問的最新標簽。 me ...
[英]What does it mean that Mercurial stores branch information as a permanent part of each commit?
我的理解是,當每個節點都是自給自足的 object 時, Git是一種鏈表,其中包含有關提交的所有信息,例如當前和先前提交之間的差異。 我認為Mercurial也是一種鏈表。 但是,然后我讀到 mercurial 將分支信息存儲為每個提交的永久部分,因此無法刪除分支那是什么意思“無法刪除”? 那么 ...
[英]How to set up a different pager and color mode in Mercurial?
我在.hgrc中設置了 Mercurial 以使用less作為尋呼機以及自定義 colors 和遵循本指南的模板:[pager] pager = LESS='FSrX' less [templates] # ... [color] mode=terminfo 這很好用,我想為除hg diff ...
[英]Is there a Mercurial (hg) equivalent of `git remote -v`?
也就是說,Mercurial 是否有命令告訴它最初是從哪里克隆的? 以下問題似乎沒有達到這個目的: Mercurial repository Identification ...