From patchwork Thu Nov 10 22:10:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [4,of,5,py3] config: record source file and line number as a sysstr From: Augie Fackler X-Patchwork-Id: 17465 Message-Id: <61d6c1706d3246ea08a4.1478815842@arthedain.pit.corp.google.com> To: mercurial-devel@mercurial-scm.org Cc: mj@zopatista.com Date: Thu, 10 Nov 2016 17:10:42 -0500 # HG changeset patch # User Augie Fackler # Date 1476021520 14400 # Sun Oct 09 09:58:40 2016 -0400 # Node ID 61d6c1706d3246ea08a4176a5b3d286f498b8054 # Parent 86c54d5610fc355ba0a68b51319740a1a8b4a975 config: record source file and line number as a sysstr We've already got the path to a config file as a sysstr, so we can just store this information as a sysstr as well. diff --git a/mercurial/config.py b/mercurial/config.py --- a/mercurial/config.py +++ b/mercurial/config.py @@ -153,7 +153,7 @@ class config(object): cont = True if sections and section not in sections: continue - self.set(section, item, m.group(2), "%s:%d" % (src, line)) + self.set(section, item, m.group(2), r"%s:%d" % (src, line)) continue m = unsetre.match(l) if m: