mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 16:02:33 +03:00
hg deletes now all changes, so we get a unchanged, blank repo. this is also the behaviour of git
This commit is contained in:
parent
a5dca3013f
commit
6435551e66
1 changed files with 6 additions and 0 deletions
|
@ -472,6 +472,12 @@ class vcs_hg(vcs):
|
||||||
if subprocess.call(['hg', 'update', '-C', rev],
|
if subprocess.call(['hg', 'update', '-C', rev],
|
||||||
cwd=self.local) != 0:
|
cwd=self.local) != 0:
|
||||||
raise VCSException("Hg checkout failed")
|
raise VCSException("Hg checkout failed")
|
||||||
|
#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=")
|
||||||
|
if subprocess.call(['hg', 'purge', '--all'],
|
||||||
|
cwd=self.local) != 0:
|
||||||
|
raise VCSException("HG purge failed")
|
||||||
|
|
||||||
def gettags(self):
|
def gettags(self):
|
||||||
p = subprocess.Popen(['hg', 'tags', '-q'],
|
p = subprocess.Popen(['hg', 'tags', '-q'],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue