Show More
@@ -143,7 +143,7 def debugancestor(ui, repo, *args): | |||||
143 | @command(b'debugantivirusrunning', []) |
|
143 | @command(b'debugantivirusrunning', []) | |
144 | def debugantivirusrunning(ui, repo): |
|
144 | def debugantivirusrunning(ui, repo): | |
145 | """attempt to trigger an antivirus scanner to see if one is active""" |
|
145 | """attempt to trigger an antivirus scanner to see if one is active""" | |
146 | with repo.cachevfs.open('eicar-test-file.com', b'wb') as f: |
|
146 | with repo.cachevfs.open(b'eicar-test-file.com', b'wb') as f: | |
147 | f.write( |
|
147 | f.write( | |
148 | util.b85decode( |
|
148 | util.b85decode( | |
149 | # This is a base85-armored version of the EICAR test file. See |
|
149 | # This is a base85-armored version of the EICAR test file. See | |
@@ -154,7 +154,7 def debugantivirusrunning(ui, repo): | |||||
154 | ) |
|
154 | ) | |
155 | # Give an AV engine time to scan the file. |
|
155 | # Give an AV engine time to scan the file. | |
156 | time.sleep(2) |
|
156 | time.sleep(2) | |
157 | util.unlink(repo.cachevfs.join('eicar-test-file.com')) |
|
157 | util.unlink(repo.cachevfs.join(b'eicar-test-file.com')) | |
158 |
|
158 | |||
159 |
|
159 | |||
160 | @command(b'debugapplystreamclonebundle', [], b'FILE') |
|
160 | @command(b'debugapplystreamclonebundle', [], b'FILE') |
General Comments 0
You need to be logged in to leave comments.
Login now