mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 15:30:28 +03:00
Simplify hg purge workarounds
This commit is contained in:
parent
4e4728969f
commit
228ed8eac9
1 changed files with 2 additions and 3 deletions
|
|
@ -561,9 +561,8 @@ class vcs_hg(vcs):
|
||||||
# Also delete untracked files, we have to enable purge extension for that:
|
# 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:
|
||||||
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=\n")
|
||||||
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