[PATCH 04 of 14] merge: consistently use "x" instead of 'x' for internal action types

Mads Kiilerich mads at kiilerich.com
Sun Jan 13 13:02:39 CST 2013


# HG changeset patch
# User Mads Kiilerich <mads at kiilerich.com>
# Date 1357686093 -3600
# Node ID 45154927265b8d8bea8b021a5ea78f27dd53e44c
# Parent  1bf1f4612f344d80ec12bb844f34f2b6e3e4c345
merge: consistently use "x" instead of 'x' for internal action types

This makes it simpler to search for places where the action types are handled.

diff --git a/mercurial/merge.py b/mercurial/merge.py
--- a/mercurial/merge.py
+++ b/mercurial/merge.py
@@ -318,7 +318,7 @@ def manifestmerge(repo, p1, p2, pa, over
     return action
 
 def actionkey(a):
-    return a[1] == 'r' and -1 or 0, a
+    return a[1] == "r" and -1 or 0, a
 
 def applyupdates(repo, action, wctx, mctx, actx, overwrite):
     """apply the merge action list to the working directory
@@ -340,7 +340,7 @@ def applyupdates(repo, action, wctx, mct
     # prescan for merges
     for a in action:
         f, m = a[:2]
-        if m == 'm': # merge
+        if m == "m": # merge
             f2, fd, flags, move = a[2:]
             if f == '.hgsubstate': # merged internally
                 continue


More information about the Mercurial-devel mailing list