[PATCH 1 of 4] log: remove useless condition

Nicolas Dumazet nicdumz at gmail.com
Sun Apr 25 22:06:09 CDT 2010


# HG changeset patch
# User Nicolas Dumazet <nicdumz.commits at gmail.com>
# Date 1272003851 -32400
# Node ID 093655bea24814baf545b76ff154accfdc49d1c4
# Parent  72bfe1b29f8e3a02ead165c05ed23b0aca4ec9b9
log: remove useless condition

for "copied" to be not None, it requires follow=True

diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -1113,7 +1113,7 @@
                     fncache.setdefault(rev, [])
                     fncache[rev].append(file_)
                     wanted.add(rev)
-                    if follow and copied:
+                    if copied:
                         copies.append(copied)
     if slowpath:
         if follow:


More information about the Mercurial-devel mailing list