comparison tests/test-purge @ 4463:a73cf208b2a0

purge: add --include and --exclude options
author Emanuele Aina <em@nerd.ocracy.org>
date Fri, 11 May 2007 17:05:44 +0200
parents 1043e4b27ab9
children ca4971347e0a
comparison
equal deleted inserted replaced
4462:12e4d9524951 4463:a73cf208b2a0
95 echo "untracked_file still around" 95 echo "untracked_file still around"
96 fi 96 fi
97 hg purge -v --force 97 hg purge -v --force
98 hg revert --all --quiet 98 hg revert --all --quiet
99 ls 99 ls
100
101 echo % skip excluded files
102 touch excluded_file
103 hg purge -p -X excluded_file
104 hg purge -v -X excluded_file
105 ls
106 rm excluded_file
107
108 echo % skip files in excluded dirs
109 mkdir excluded_dir
110 touch excluded_dir/file
111 hg purge -p -X excluded_dir
112 hg purge -v -X excluded_dir
113 ls
114 ls excluded_dir
115 rm -R excluded_dir
116
117 echo % skip excluded empty dirs
118 mkdir excluded_dir
119 hg purge -p -X excluded_dir
120 hg purge -v -X excluded_dir
121 ls
122 rmdir excluded_dir
123
124 echo % skip patterns
125 mkdir .svn
126 touch .svn/foo
127 mkdir directory/.svn
128 touch directory/.svn/foo
129 hg purge -p -X .svn -X '*/.svn'
130 hg purge -p -X re:.*.svn