代码以一个称为“变更列表”(change list,简称CL)的单元被编写和封装起来。CL在编码结束之后提交审核
CL可以是一段新代码,也可以是对已有代码的修改,或是缺陷修复等。CL代码的大小从几行或几百行不等,一般审查者都会要求把数量较大的CL分解成数量较小的几个CL。
在CL提交审查之前,会经过一系列的自动化检查。这种自动化静态检查所使用的规则包含一些简单的确认,例如是否遵循代码风格指南、提交CL相关的测试用例是否执行通过等。

 

Move to Another Changelist 将选中的文件转移到其他的 Change list 中。 Change list 是一个重要的概念,这里需要进行重点说明。很多时候,我们开发一个项目同时并发的任务可能有很多,每个任务涉及到的文件可能都是基于业务来讲的。 所以就会存在一个这样的情况:我改了 30 个文件,其中 15 个文件是属于订单问题,剩下 15 个是会员问题,那我希望提交代码的时候是根据业务区分这些文件的, 这样我填写 Commit Message 是好描述的,同时在文件多的情况下,我也好区分这些要提交的文件业务模块。 所以我一般会把属于订单的 15 个文件转移到其他的 Change list中,先把专注点集中在 15 个会员问题的文件,先提交会员问题的 Change list,然后在提交订单会员的 Change list。 我个人还有一种用法是把一些文件暂时不提交的文件转移到一个我指定的 Change list,等后面我觉得有必要提交了,再做提交操作,这样这些文件就不会干扰我当前修改的文件提交。 总结下 Change list 的功能就是为了让你更好地管理你的版本控制文件,让你的专注点得到更好的集中,从而提供效率。

 将选中的文件转移到其他的 Change list 中。
Change list 是一个重要的概念,这里需要进行重点说明。很多时候,我们开发一个项目同时并发的任务可能有很多,每个任务涉及到的文件可能都是基于业务来讲的。
所以就会存在一个这样的情况:我改了 30 个文件,其中 15 个文件是属于订单问题,剩下 15 个是会员问题,那我希望提交代码的时候是根据业务区分这些文件的, 这样我填写 Commit Message 是好描述的,同时在文件多的情况下,
我也好区分这些要提交的文件业务模块。

所以我一般会把属于订单的 15 个文件转移到其他的 Change list中,先把专注点集中在 15 个会员问题的文件,先提交会员问题的 Change list,然后在提交订单会员的 Change list。
我个人还有一种用法是把一些文件暂时不提交的文件转移到一个我指定的 Change list,等后面我觉得有必要提交了,再做提交操作,这样这些文件就不会干扰我当前修改的文件提交。


总结下 Change list 的功能就是为了让你更好地管理你的版本控制文件,让你的专注点得到更好的集中,从而提供效率。

​ http://wiki.jikexueyuan.com/project/intellij-idea-tutorial/vcs-introduce.html​

 

 

Changelist


A changelist is a set of changes in files that represents a logical change in source code. The changes specified in a changelist are not stored in the repository until committed (pushed).


Any changes made to the source files, are automatically included in the active changelist. Initially, the Default changelist is active, but you can make any other changelist active. The active changelist is displayed on top of the Version Control tool window, with the name being highlighted in bold font.


In addition to the Default changelist, you can create new changelists, delete existing ones (except for the Default changelist), and move files between changelists.


All modified, deleted, unversioned and other files are managed in the ​​Version Control tool window​​. From this window you can:

  • Commit (push) changelists.
  • Create new changelists (if you want to keep an eye on certain files and changes).
  • Remove existing changelists and set the default changelists.
  • Rollback modified files in changelists.
  • Add the unversioned files and directories to the version control.
  • Move files between changelists.
  • Show differences on selected files.
  • Refresh the list of VCS changes.
  • Jump to the source code from within a changelist.
  • Shelve (stash) and unshelve (unstash) changes.

 

​https://www.jetbrains.com/help/idea/2016.2/changelist.html​