1
我試圖讓Mercurial的annotate命令處理包含模式指定的文件。當我運行下面的測試批處理文件,Mercurial annotate - 包括沒有找到文件
hg annotate --include *.txt
給了我以下錯誤:
abort: at least one filename or pattern is required
正如你所看到的,我使用的是相同的模式將文件添加到回購,所以我不確定發生了什麼事。
感謝任何幫助。
批處理文件:
mkdir merc_test
hg init merc_test
cd merc_test
echo "1" > 1.txt
echo "2" > 2.txt
hg add --include *.txt
hg commit -m "checking in"
hg annotate 1.txt
hg annotate --include *.txt
cd ..
rmdir /s /q merc_test
這是....惱人的,但你是現貨。謝謝 – 2010-03-05 03:58:45
是的,當你想到在沒有尾隨模式的情況下--exclude是如何工作的時候,它會更有意義,但是錯誤信息很糟糕。 – 2010-03-05 04:14:10