linux下各种patch的管理工具

源代码在线查看: delete.test

软件大小: 395 K
上传用户: jianmingcao
关键词: linux patch 管理工具
下载地址: 免注册下载 普通下载 VIP

相关代码

				Test the delete command.									$ rm -rf d					$ mkdir -p d/patches					$ cd d									$ quilt delete					> No patches in series									$ cat > test.txt					< Calling pci_match_id() would be more feasible.									$ quilt new test1					> Patch %{P}test1 is now on top									$ quilt add test.txt					> File test.txt added to patch %{P}test1									$ cat > test.txt					< Try the following patch instead.									$ quilt refresh					> Refreshed patch %{P}test1									$ quilt new test2					> Patch %{P}test2 is now on top									$ quilt add test.txt					> File test.txt added to patch %{P}test2									$ cat > test.txt					< Ok, that's fine with me if you want to do that instead.									$ quilt refresh					> Refreshed patch %{P}test2									$ quilt delete test1					> Patch %{P}test1 is currently applied									$ quilt pop					> Removing patch %{P}test2					> Restoring test.txt					> 					> Now at patch %{P}test1									$ quilt series					> %{P}test1					> %{P}test2									$ quilt delete -n					> Removed patch %{P}test2									$ quilt series					> %{P}test1									$ quilt pop					> Removing patch %{P}test1					> Restoring test.txt					> 					> No patches applied									$ quilt delete test1					> Removed patch %{P}test1									$ quilt series									$ echo "test1" > %{P}series					$ quilt delete -n					> Removed patch %{P}test1									$ quilt series									# Force the pop operaton to fail					$ echo "test3" > %{P}/series					$ echo "test3" > .pc/applied-patches					$ mkdir -p .pc/test3/dir					$ touch .pc/test3/dir/file					$ chmod a-rx .pc/test3/dir									$ quilt delete "test3"					> Removing patch %{P}test3					> .pc/test3/dir: Permission denied									$ chmod a+rx .pc/test3/dir									$ find .pc/test3					> .pc/test3					> .pc/test3/dir					> .pc/test3/dir/file									$ quilt applied					> No patches applied									$ quilt series					> %{P}test3									$ quilt delete					> No patches applied									$ quilt delete test3					> Removed patch %{P}test3									$ cd ..					$ rm -rf d							

相关资源