Aracılığıyla paylaş


Team Foundation Sürüm Denetimi çakışmalarını çözme

Kullanarak bir avantajı Team Foundation sürüm denetimi dosyalarınızı yönetmek için olan bir dosyaya birkaç kişi aynı anda çalışabilir.Bir dezavantajı alabilir, iade, raftan, birleştirme veya dosyalarınızı geri önce bazen çakışmaları çözmeniz gereken olmasıdır.

Çakışmalarla karşılaşmak can sıkıcı olabilir, ancak sistem, çakışmaları anlamanıza ve çözümlemenize yardımcı olacak bilgi ve araçları sağlar.

  • Çakışmaları çözümleme

  • Otomatik Çöz tüm çakışmaları

  • AutoMerge tek tek bir çakışması

  • Tek tek bir çakışma el ile çözün

  • Otomatik seçeneklerini anlayın

  • Komut isteminden çalışma

  • İpuçları alın

Çakışmaları çözümleme

Çakışmaları penceresi, engelleyen çakışmaları çözümlemek için kullanılır.

Çakışan değişiklikleri iade bloğu

Çakışmaları pencere çözmek

Varsayılan olarak, pencere nedeni çalıştığınız en son işlem çakışmaları gösterir.Pencereyi bu durumda olduğunda başlayan bir ileti görüntülenir: yolu filtre uygulanan.Tüm çakışmaları alanınızdaki, görüntülemeyi tüm çakışmaları Al.İle başlayan bir ileti: n Conflict(s) görüntülenir.

Yeni çakışmaları alanınızdaki dosyaların yapılan bu yana çok zaman geçtiyse oluşmuş olabilir.To refresh the Resolve Conflicts window, choose Refresh.

Each conflict contains information and sometimes links that might help you resolve it.To get more information, you can select the conflict and choose:

  • Geçmiş düğmesiHistory to see the history of the file.If the operation that caused the conflict is a Merge or a Rollback, then you can choose the menu control to the right of History and then select either Source History or Target History.

    Bkz. Bir öğenin geçmişini alma.

  • Ek Açıklama düğmesiAnnotate to view details on all changes that were made to the most recent version of the file, including who made each change and when they made it.Bkz. Açıklama kullanarak dosya değişikliklerini görüntüleme.

  • Dosyayı Karşılaştır düğmesiCompare (or the menu to the right of the button and then choose a command).The Diff window appears.

Otomatik Çöz tüm çakışmaları

By default the system automatically attempts to AutoResolve All conflicts unless you have turned off this option (see Tips).In the Resolve Conflicts window, you can also manually choose AutoResolve All, and then choose:

  • Select All Conflict Types if you want the system to attempt to resolve the conflicts automatically by using all its heuristics.

  • Select Specific Conflict Types if you want the system to attempt to resolve the conflicts, but you want to exclude some heuristics.

    The Choose Conflicts to Resolve dialog box appears.Check or clear the options that you want to enable or disable, and then choose AutoResolve.For more information, see Understand the automatic options below.

The system attempts to automatically resolve the conflicts displayed in the Pending Changes window.Any conflicts the system was unable to resolve will remain in the window.You have to manually resolve these conflicts.

AutoMerge a single conflict

Choose AutoMerge if you want to try to resolve selected conflicts using all the AutoMerge options described in Understand the automatic options below.

İpucuİpucu

You can press and hold either the Ctrl or the Shift key and then select multiple conflicts.

[!NOT]

If AutoMerge is disabled, then this conflict must be manually resolved.

Manually resolve a single conflict

If the system cannot automatically resolve a conflict, or if you want to make sure you understand what is changing, you must manually resolve the conflict.Within each conflict, the system displays the actions that you can take to resolve the conflict.The actions displayed depend upon the conflict type, and the operation that caused the conflict.

Merge changes in merge tool

When a conflict is caused by conflicting content changes, you can choose Merge Changes in Merge Tool.

When you choose this action, the Merge window appears.

Pencere Birleştir

The outcome of your work to resolve the conflict is shown in the Results pane.

In this window you can:

  • Select the layout of the window: Vertical View, Horizontal View, Mixed View.

  • Navigate among the differences and the conflicts.

  • Select items from the left and right versions of the file to include them in the result.

  • Type additional content into the file in the Result pane.

  • View the History of the file.Bkz. Bir öğenin geçmişini alma.

  • Compare the various versions of the file.

  • Annotate the file to see who changed what.Bkz. Açıklama kullanarak dosya değişikliklerini görüntüleme.

When are satisfied with the contents of the Result pane, choose Accept Merge.

Otomatik seçeneklerini anlayın

In special cases, you may want to restrict the types of conflicts automatically resolved by the AutoResolve All option.

When you choose AutoResolve All, and then Specific Conflict Types, the Choose Conflicts to Resolve dialog box appears.

İletişim kutusu çözümlemek için çakışmaları seçin

If you want the system to automatically resolve conflicts that occurred because…

As explained in this example…

Then select this check box…

Non-conflicting content changes were made in each version of a file

In the file version on the left, a zero was added at the beginning.In the file on the right, a three was added at the end:

Çakışmayan içerik değişiklikleri

Conflicts with any content changes

Content changes were made that are unique to the workspace (during get or checkin operation) or target version (during merge or rollback operation)

four and five were added to the workspace or target version:

Çalışma alanı ya da hedef benzersiz içerik değişiklikleri

Conflicts with content changes made only in the local workspace or target branch

İçerik değişiklikleri yapıldı (sırasında get ya da iade işlemi) sunucu veya kaynak sürümü (sırasında birleştirme ya da geri alma işlemi) eşsiz

dört ve beş sunucu ya da kaynak sürüme eklendi:

Sunucu ya da kaynak benzersiz içerik değişiklikleri

Yalnızca sunucu sürümü ya da kaynak dalın yapılan içerik değişiklikleriyle çakışmalar

Kaynak dal (sırasında birleştirme ya da geri alma işlemi) değiştirildi bir dosya (get ya da iade işlemi sırasında) sunucusundaki veya

Başlat.cs adlı ve üzerinde çalışan bir dosyayı kullanıma.Bu süre boyunca başka biri aynı dosyanın etkilenen bir değişiklik kümesi teslim.Bu değişiklik dosyanın içeriğini değil, ama dosyanın adı başla.cs olarak değiştirdi.

Sunucu sürümü ya da kaynak dal dosyasında yeniden adlandırma sonucu oluşan çakışmaları

  • Ortak içerik değişiklikleri her sürümü aynı içerik sonuçlanan yapıldı

  • Değiştirilen bir dosya, bir geçişli onay yapısı iade ve seçili bekleyen Değişikliklerimi yerel olarak korumak seçeneği

Her sürümdeki değişiklik aynı dosya içeriğiyle sonuçlandı.Değişiklikleri içerikle dosyalarındaki, aşağıdaki örnekte gösterildiği gibi olabilir:

Her sürümde aynı içerik değişiklikleri

Bu seçeneği de diğer işlemleri tarafından neden olduğu çakışmaları çözümler (örneğin, yeniden adlandır, silme, silmeyi geri alın ve dallandırma) ve bunun sonucunda özdeş dosyalarında.

İpucuİpucu

Devam bu onay kutusunu seçerseniz, sistem bu değişiklikleri (yükleme) gerçekleştirerek çözer alanınıza üzerine sunucu sürümü.

Sunucu ve çalışma alanında aynı değişikliklerden kaynaklanan çakışmalar

Komut isteminden çalışma

İpuçları

  • İpucuVarsayılan olarak sistem otomatik olarak çalışır otomatik Çöz tüm çakışıyor.Seçeneği değiştirmek için menü çubuğundan seçin Araçları, seçeneklerive sonra seçenekleri iletişim kutusuna gidin kaynak denetimi, Visual Studio Team Foundation Server.Temizle oluşturulduğunda, bunlar otomatik olarak çakışmaları girişimi onay kutusunu işaretleyin.

  • İpucuTakımınızın çok sayıda (örneğin, büyük bir kod temeli birleştirme işleminde sonra ortaya çıkabilir) çakışmaları çözümlemek için iş Birliği gerekiyor mu?Bu durumda, ortak bir çalışma alanı bir paylaşılan Geliştirici makinede yardımcı olabilir.Bkz. Çalışma alanları oluşturma ve bunlarda çalışma.