Easier multiline strings

This commit is contained in:
Daniel Martí 2014-06-26 12:52:16 +02:00
parent 4e153cc60d
commit 4ad7e8be06

View file

@ -483,9 +483,9 @@ class vcs_git(vcs):
def latesttags(self, alltags, number): def latesttags(self, alltags, number):
self.checkrepo() self.checkrepo()
p = SilentPopen(['echo "' + '\n'.join(alltags) + '" | \ p = SilentPopen(['echo "' + '\n'.join(alltags) + '" | '
xargs -I@ git log --format=format:"%at @%n" -1 @ | \ + 'xargs -I@ git log --format=format:"%at @%n" -1 @ | '
sort -n | awk \'{print $2}\''], + 'sort -n | awk \'{print $2}\''],
cwd=self.local, shell=True) cwd=self.local, shell=True)
return p.stdout.splitlines()[-number:] return p.stdout.splitlines()[-number:]