comparison fetch_command.py @ 111:5497d1264b4d

fetch_command: Fix mis-converted executable when svn:executable was set to the empty string.
author Augie Fackler <durin42@gmail.com>
date Tue, 25 Nov 2008 09:45:38 -0600
parents a4dcffaa6538
children e58c2f1de059
comparison
equal deleted inserted replaced
110:a4dcffaa6538 111:5497d1264b4d
145 Cannot display: file marked as a binary type.''') 145 Cannot display: file marked as a binary type.''')
146 146
147 property_exec_set_re = re.compile(r'''Property changes on: ([^\n]*) 147 property_exec_set_re = re.compile(r'''Property changes on: ([^\n]*)
148 _* 148 _*
149 (?:Added|Name): svn:executable 149 (?:Added|Name): svn:executable
150 \+ \* 150 \+''')
151 ''')
152 151
153 property_exec_removed_re = re.compile(r'''Property changes on: ([^\n]*) 152 property_exec_removed_re = re.compile(r'''Property changes on: ([^\n]*)
154 _* 153 _*
155 (?:Deleted|Name): svn:executable 154 (?:Deleted|Name): svn:executable
156 - \* 155 -''')
157 ''')
158 156
159 empty_file_patch_wont_make_re = re.compile(r'''Index: ([^\n]*)\n=*\n(?=Index:)''') 157 empty_file_patch_wont_make_re = re.compile(r'''Index: ([^\n]*)\n=*\n(?=Index:)''')
160 158
161 any_file_re = re.compile(r'''^Index: ([^\n]*)\n=*\n''', re.MULTILINE) 159 any_file_re = re.compile(r'''^Index: ([^\n]*)\n=*\n''', re.MULTILINE)
162 160
163 property_special_set_re = re.compile(r'''Property changes on: ([^\n]*) 161 property_special_set_re = re.compile(r'''Property changes on: ([^\n]*)
164 _* 162 _*
165 (?:Added|Name): svn:special 163 (?:Added|Name): svn:special
166 \+ \* 164 \+''')
167 ''')
168 165
169 property_special_removed_re = re.compile(r'''Property changes on: ([^\n]*) 166 property_special_removed_re = re.compile(r'''Property changes on: ([^\n]*)
170 _* 167 _*
171 (?:Deleted|Name): svn:special 168 (?:Deleted|Name): svn:special
172 \- \* 169 \-''')
173 ''')
174 170
175 def stupid_diff_branchrev(ui, svn, hg_editor, branch, r, parentctx, tempdir): 171 def stupid_diff_branchrev(ui, svn, hg_editor, branch, r, parentctx, tempdir):
176 """Extract all 'branch' content at a given revision. 172 """Extract all 'branch' content at a given revision.
177 173
178 Return a tuple (files, filectxfn) where 'files' is the list of all files 174 Return a tuple (files, filectxfn) where 'files' is the list of all files