bzr搁置一些正在处理的文件

时间:2014-04-11 06:33:48

标签: bazaar

假设我说我正在处理6个文件而且我只想搁置6个中的3个

  1. 这是正确的bzr shelve file1.txt file2.txt file5.txt -m "this is the thing"

  2. 我如何以后取消搁置?

  3. 如果我不需要它,如何删除货架?

1 个答案:

答案 0 :(得分:1)

  

这是正确的bzr shelve file1.txt file2.txt file5.txt -m "this is the thing"

是的,这是对的。它只会搁置对指定文件和目录的更改。此外:

  • 如果没有变化,它将无效,只需告诉你没有变更搁置。
  • 要跳过这些文件中每次更改的互动问题,--all标记很方便,例如:bzr shelve file1.txt file2.txt file5.txt -m "this is the thing" --all
  

我以后如何取消保留?

使用bzr shelve --list查找货架的ID。然后用bzr unshelve THE_ID取消搁置。顺便说一句,如果你没有指定一个ID,那么bzr unshelve将取消最近的货架。

  

如果我不需要它,如何删除货架?

使用--delete-only的{​​{1}}标记,例如:

bzr unshelve