mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 16:02:33 +03:00
Fix weird indentation in the hg purge changes
This commit is contained in:
parent
c09382fa82
commit
0a34765461
1 changed files with 4 additions and 4 deletions
|
@ -558,13 +558,13 @@ class vcs_hg(vcs):
|
||||||
p = subprocess.Popen(['hg', 'purge', '--all'], stdout=subprocess.PIPE,
|
p = subprocess.Popen(['hg', 'purge', '--all'], stdout=subprocess.PIPE,
|
||||||
cwd=self.local)
|
cwd=self.local)
|
||||||
result = p.communicate()[0]
|
result = p.communicate()[0]
|
||||||
|
# Also delete untracked files, we have to enable purge extension for that:
|
||||||
if "'purge' is provided by the following extension" in result:
|
if "'purge' is provided by the following extension" in result:
|
||||||
#Also delete untracked files, we have to enable purge extension for that:
|
|
||||||
with open(self.local+"/.hg/hgrc", "a") as myfile:
|
with open(self.local+"/.hg/hgrc", "a") as myfile:
|
||||||
myfile.write("\n[extensions]\nhgext.purge=")
|
myfile.write("\n[extensions]\nhgext.purge=")
|
||||||
if subprocess.call(['hg', 'purge', '--all'],
|
if subprocess.call(['hg', 'purge', '--all'],
|
||||||
cwd=self.local) != 0:
|
cwd=self.local) != 0:
|
||||||
raise VCSException("HG purge failed")
|
raise VCSException("HG purge failed")
|
||||||
else:
|
else:
|
||||||
raise VCSException("HG purge failed")
|
raise VCSException("HG purge failed")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue