From: Daniel Martí Date: Wed, 15 Jan 2014 15:40:27 +0000 (+0100) Subject: Fix weird indentation in the hg purge changes X-Git-Tag: 0.1~6 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=0a34765461fe593ffa9ba7c2bae1ff20805b485b;p=fdroidserver.git Fix weird indentation in the hg purge changes --- diff --git a/fdroidserver/common.py b/fdroidserver/common.py index deb27b11..5dc84fc2 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -558,13 +558,13 @@ class vcs_hg(vcs): p = subprocess.Popen(['hg', 'purge', '--all'], stdout=subprocess.PIPE, cwd=self.local) 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: - #Also delete untracked files, we have to enable purge extension for that: 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'], - cwd=self.local) != 0: - raise VCSException("HG purge failed") + cwd=self.local) != 0: + raise VCSException("HG purge failed") else: raise VCSException("HG purge failed")