With this commit, when you make a push it will print out the URLs you can use to create a new PR or check out the existing/updated one.
Fixes https://pagure.io/pagure/issue/2556
Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr
rebased onto e30f9b8042bb657fd496c8c48fcc8cec29177446
1 new commit added
Was looking for this functionality long time ago =)
you can skip creating variable seen and use for .. else .. construction. which also eliminates need for doing len() =)
seen
for .. else ..
len()
for...else doesn't seem to do exactly what I want:
for...else
>>> for el in [1,2]: ... print el ... else: ... print None ... ... 1 2 None
hmmmm... then do it your way =)
Thanks for the review ! :)
Pull-Request has been merged by pingou
With this commit, when you make a push it will print out the URLs you
can use to create a new PR or check out the existing/updated one.
Fixes https://pagure.io/pagure/issue/2556
Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr