mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 14:30:30 +03:00
Remove "hg purge" after "hg update"
1. "hg purge" works only on interactive shell (see #1015). 2. No need to clean anything because we did this before "hg update".
This commit is contained in:
parent
87909fae74
commit
118c7fc783
1 changed files with 0 additions and 10 deletions
|
|
@ -1716,16 +1716,6 @@ class vcs_hg(vcs):
|
|||
p = FDroidPopen(['hg', 'update', '-C', '--', rev], cwd=self.local, output=False)
|
||||
if p.returncode != 0:
|
||||
raise VCSException("Hg checkout of '%s' failed" % rev, p.output)
|
||||
p = FDroidPopen(['hg', 'purge', '--all'], cwd=self.local, output=False)
|
||||
# Also delete untracked files, we have to enable purge extension for that:
|
||||
if "'purge' is provided by the following extension" in p.output:
|
||||
with open(os.path.join(self.local, '.hg', 'hgrc'), "a") as myfile:
|
||||
myfile.write("\n[extensions]\nhgext.purge=\n")
|
||||
p = FDroidPopen(['hg', 'purge', '--all'], cwd=self.local, output=False)
|
||||
if p.returncode != 0:
|
||||
raise VCSException("HG purge failed", p.output)
|
||||
elif p.returncode != 0:
|
||||
raise VCSException("HG purge failed", p.output)
|
||||
|
||||
def _gettags(self):
|
||||
p = FDroidPopen(['hg', 'tags', '-q'], cwd=self.local, output=False)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue