trydiff: remove dead branch in diffline()
Since diffline() is never called when 'revs' is empty, it doesn't need
to handle that case.
--- a/mercurial/patch.py Fri Jan 16 15:19:57 2015 -0800
+++ b/mercurial/patch.py Fri Jan 16 15:22:29 2015 -0800
@@ -1755,11 +1755,8 @@
def diffline(f, revs):
if not repo.ui.quiet:
- if revs:
- revinfo = ' '.join(["-r %s" % rev for rev in revs])
- line = 'diff %s %s\n' % (revinfo, f)
- else:
- line = 'diff %s\n' % f
+ revinfo = ' '.join(["-r %s" % rev for rev in revs])
+ line = 'diff %s %s\n' % (revinfo, f)
else:
line = ''
return line