何时删除意味着删除父母和兄弟姐妹?

时间:2014-05-09 08:29:35

标签: bazaar

比较这种互动:

C:\MyRepo\MyBranch>bzr stat
unknown:
  File.txt
  Pippo.txt
  a/

C:\MyRepo\MyBranch>bzr add a
adding a
adding a/Pluto.txt
adding a/Topolino.txt

C:\MyRepo\MyBranch>bzr remove a/Pluto.txt --keep
removed a/Pluto.txt

反对这一个:

C:\MyRepo\MyBranch>bzr stat
unknown:
  File.txt
  Pippo.txt
  a/

C:\MyRepo\MyBranch>bzr add a
adding a
adding a/Pluto.txt
adding a/Topolino.txt

C:\MyRepo\MyBranch>bzr remove a/Pluto.txt --keep --new
removed a/Topolino.txt
removed a/Pluto.txt
removed a

唯一的区别是在第二个选项中包含选项 - 新 - new 的效果是 Pluto.txt 的兄弟姐妹和父母也是无版本的。

还要考虑这个例子,其中还添加了目录 a 的兄弟姐妹:

C:\MyRepo\MyBranch>bzr stat
unknown:
  File.txt
  Pippo.txt
  a/

C:\MyRepo\MyBranch>bzr add
adding File.txt
adding Pippo.txt
adding a
adding a/Pluto.txt
adding a/Topolino.txt

C:\MyRepo\MyBranch>bzr remove a/Pluto.txt --keep --new
removed a/Topolino.txt
removed a/Pluto.txt
removed a

再次删除 - 新取消整个 a 目录,但不会取消其兄弟 File.txt Pippo.txt (显示删除命令仍然在 a 上运行但是它的版本太大了。)

为什么Bazaar表现得像这样?我错过了什么?

0 个答案:

没有答案