Patch
patch只是顯示當前版本發生了怎樣的變化,基于文本。例如:
文本變化:
del /s /q game\bin\*.lib
del /s /q game\bin\*.dll
+
\ No newline at end of file
二進制變化:
diff -r 2f3c677ed7ab -r c0efe12f9de3 game/bin/091208A002.jpg
Binary file game/bin/091208A002.jpg has changed
對于hg來說,據我所了解,無法像svn那樣apply一個patch。hg的patch可以在提交后從log中提取
而svn的patch只能在未提交前提取,svn在這點上顯然有些麻煩。
Bundle
bundle包含了版本修改的所有信息,包括二進制。其本身基于二進制,無法閱讀,可以通過Repository Explorer的Add Bundle來將修改打入你的版本庫。但須注意Bundle之間必須連續,如果當中跳過任何一個Bundle,都是無法成功完整的打入你的版本庫的