2011-11-04 19 views

cevap

2

Bunu yapmanın bir yolu yok. Önerilen yaklaşım, dosya ve .rej dosyasını açmak ve reddedilen hunks'leri manuel olarak birleştirmektir.

+0

bu sinir bozucu. yine de bilmek güzel – FaceBro

2

Bahse girerim hg bir hata kodu döndürür. Belki de hg import'u geri dönen hata kodunu yakalayan bir kabuk betiğine batırabilir ve bir hata varsa ne yaparsınız? Böyle bir şey:

#!/bin/sh 
# run the script by typing `hgimp patch_name.patch` 
# $1 below will contain patch_name.patch 
hg import $1 

# if the return code is not equal to 0, run vimdiff or whatever 
if [ ! "$?" -eq '0' ]; then 
    # run your diff/cleanup commands here 
fi 
İlgili konular