Patchwork [4,of,6] graphlog: remove redundant check for empty revs

login
register
mail settings
Submitter Yuya Nishihara
Date Jan. 4, 2018, 8:36 a.m.
Message ID <759d00588ebec2f0b9f6.1515055005@mimosa>
Download mbox | patch
Permalink /patch/26533/
State Accepted
Headers show

Comments

Yuya Nishihara - Jan. 4, 2018, 8:36 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1508680356 -32400
#      Sun Oct 22 22:52:36 2017 +0900
# Node ID 759d00588ebec2f0b9f6c6a762a7ba970e0f8d26
# Parent  731765e1876ba38dae45b53a5aed2c204f8c03d5
graphlog: remove redundant check for empty revs

Patch

diff --git a/mercurial/graphmod.py b/mercurial/graphmod.py
--- a/mercurial/graphmod.py
+++ b/mercurial/graphmod.py
@@ -48,9 +48,6 @@  def dagwalker(repo, revs):
     returned.
 
     """
-    if not revs:
-        return
-
     gpcache = {}
 
     for rev in revs: