0
我是新來的mercurial。我嘗試在我的軟件的兩個版本上工作。我命名了2個分支:一個是「v8」(舊/穩定),另一個是「默認」。爲什麼我的分支完全合併?
我以爲我理解的東西,但現在我似乎已經合併了兩個版本。
這是什麼樣子(從分支前刪除的信息):
o changeset: 39:1e72986020bd
| tag: tip
| parent: 37:406b8e897030
| user: ME <[email protected]>
| date: Thu Jan 16 09:53:55 2014 +0100
| summary: Suppression des DCU
|
| o changeset: 38:7381e3f2309b
|/| branch: v8
| | parent: 31:611a4416e4a5
| | parent: 37:406b8e897030
| | user: ME <[email protected]>
| | date: Wed Jan 15 19:21:58 2014 +0100
| | summary: fixforbrowser sur impressiondecomptes
| |
o | changeset: 37:406b8e897030
| | user: ME <[email protected]>
| | date: Wed Jan 15 19:02:18 2014 +0100
| | summary: fixforbrowser sur impressiondecomptes
| |
o | changeset: 36:d7c0feaad38a
| | user: ME <[email protected]>
| | date: Wed Jan 15 18:57:44 2014 +0100
| | summary: Cosmétique
| |
o | changeset: 35:d2b4c3130b61
| | user: ME <[email protected]>
| | date: Sun Jan 12 14:38:36 2014 +0100
| | summary: Cosmétique encore
| |
o | changeset: 34:5447f904a336
| | user: ME <[email protected]>
| | date: Fri Jan 10 03:51:33 2014 +0100
| | summary: projet
| |
o | changeset: 33:f48c4023d822
| | user: ME <[email protected]>
| | date: Fri Jan 10 03:50:06 2014 +0100
| | summary: cosmétique (beaucoup de fiches)
| |
o | changeset: 32:cc6b2de08004
| | parent: 30:5b4bef6aad09
| | user: ME <[email protected]>
| | date: Fri Jan 10 02:12:59 2014 +0100
| | summary: cosmétique
| |
| @ changeset: 31:611a4416e4a5
| | branch: v8
| | parent: 29:0c47053f9a7b
| | user: ME <[email protected]>
| | date: Fri Jan 10 02:11:01 2014 +0100
| | summary: purge deleted ?
| |
o | changeset: 30:5b4bef6aad09
|\| parent: 25:74d793961989
| | parent: 29:0c47053f9a7b
| | user: ME <[email protected]>
| | date: Fri Jan 10 02:09:04 2014 +0100
| | summary: v9 after fixes
| |
| o changeset: 29:0c47053f9a7b
| | branch: v8
| | parent: 27:79855eedf019
| | user: ME <[email protected]>
| | date: Fri Jan 10 01:57:22 2014 +0100
| | summary: 8.084 ok?
| |
+---o changeset: 28:e60a7447adf4
| |/ branch: v8
| | parent: 25:74d793961989
| | parent: 27:79855eedf019
| | user: ME <[email protected]>
| | date: Fri Jan 10 01:41:05 2014 +0100
| | summary: 8.084 ??
| |
| o changeset: 27:79855eedf019
| | branch: v8
| | user: ME <[email protected]>
| | date: Wed Jan 08 16:57:12 2014 +0100
| | summary: fix detection des fichiers de récap sur imports feuillets
| |
| o changeset: 26:19d2f4b2d867
| | branch: v8
| | parent: 23:14219f06bc1d
| | user: ME <[email protected]>
| | date: Wed Jan 08 16:49:35 2014 +0100
| | summary: fix qpdep et qpdrm sur imports feuillets
| |
o | changeset: 25:74d793961989
| | user: ME <[email protected]>
| | date: Wed Jan 08 16:44:30 2014 +0100
| | summary: premieres modifs v9
| |
o | changeset: 24:1af3020ba120
| | parent: 22:7307bc3e87ba
| | user: ME <[email protected]>
| | date: Thu Dec 26 15:47:20 2013 +0100
| | summary: Initial v9
| |
| o changeset: 23:14219f06bc1d
|/ branch: v8
| user: ME <[email protected]>
| date: Thu Dec 26 15:41:55 2013 +0100
| summary: Branche stable v8
|
o changeset: 22:7307bc3e87ba
| user: ME <[email protected]>
| date: Fri Dec 20 18:50:50 2013 +0100
| summary: 8.083
- 版本31似乎是最後的「好」 V8
- 然後我做了
hg update default
和「默認工作「分支。 - 我犯了加快轉速36,因爲我知道我不得不作出修正我希望有穩定合併/ V8
- 我沒有變化,致力於(修訂版37)
- 然後我切換與
hg update v8
爲V8 - 然後我試圖與
hg merge 406b8e897030
- 然後我犯合併從默認的變化(修訂版38)
- 我沒有去除在倉庫雖然一個* 3二進制(DCU)文件後,最後提交。 dcu是
.hgignore
d。
現在,當我切換分支時,我看不到文件更改。我可以回去修訂版31 hg update v8
(可能沒用)和hg update --rev 31
,但我想:
- 明白我做錯了什麼
- 獲得2個乾淨的分支回到
如果你知道關於分支和合並如何工作的明確解釋,我很樂意閱讀。
好吧,'hg graft'似乎是**命令幾乎完全在我的情況下使用。現在,我該如何清理我的存儲庫?有沒有辦法「忘記」(或恢復)合併和「父:37:406b8e897030」? –
@JCBoggio - rebase r39至r36。條帶r37(以前啓用條帶擴展,因爲「條帶擴展名 - 條帶變更集**及其歷史記錄中的後代**」而必須重新綁定,並且您必須僅消除37-38條) –