From: Lars Hjemli Date: Sat, 11 Oct 2008 18:09:42 +0000 (+0200) Subject: ui-snapshot: add dwimmery X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/ed7ff095ca467cdc4c8a1a1459847d68e50c9b91?hp=ed7ff095ca467cdc4c8a1a1459847d68e50c9b91 ui-snapshot: add dwimmery When downloading a snapshot, the snapshot name will often contain the repo name combined with a tag. This patch tries to exploit this so that the correct revision is downloaded even if no specific revision is specified. PS: this only occurs if neither 'h' nor 'id' is specified in the query- string. PPS: this also fixes a bug which occurs when trying to download a filename with an unsupported suffix: it used to try to print an error message to the user but failed since it didn't prepare the output properly. Signed-off-by: Lars Hjemli ---