1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-09 00:40:11 +01:00

Fix weird indentation in the hg purge changes

This commit is contained in:
Daniel Martí 2014-01-15 16:40:27 +01:00
parent c09382fa82
commit 0a34765461

View File

@ -558,8 +558,8 @@ class vcs_hg(vcs):
p = subprocess.Popen(['hg', 'purge', '--all'], stdout=subprocess.PIPE,
cwd=self.local)
result = p.communicate()[0]
if "'purge' is provided by the following extension" in result:
# Also delete untracked files, we have to enable purge extension for that:
if "'purge' is provided by the following extension" in result:
with open(self.local+"/.hg/hgrc", "a") as myfile:
myfile.write("\n[extensions]\nhgext.purge=")
if subprocess.call(['hg', 'purge', '--all'],