# HG changeset patch # User Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl> # Date 1445078982 -7200 # Sat Oct 17 12:49:42 2015 +0200 # Node ID a4014cec155c5c3eac8596e1a728228d8dd28dc8 # Parent f152b740f16d9b26153da490331b9d9a6f01c5c8 Debugging notes and warningsare prefixed with path_pattern: diff --git a/path_pattern.py b/path_pattern.py --- a/path_pattern.py +++ b/path_pattern.py @@ -102,7 +102,7 @@ if match: value = self.remote.fill(**match) if not value: - ui.warn(_("Invalid path pattern - markers mismatch between %s.local and %s.remote\n") + ui.warn(_("path_pattern: Invalid pattern - markers mismatch between %s.local and %s.remote\n") % (self.alias, self.alias)) return value @@ -121,11 +121,11 @@ ("remote", self.remote)]: if not obj: ui.warn( - _("Incomplete path pattern - missing %s.%s\n") % (self.alias, name)) + _("path_pattern: Incomplete pattern - missing %s.%s\n") % (self.alias, name)) return False if not obj.is_valid(): ui.warn( - _("Invalid path pattern %s.%s - bad syntax") % (self.alias, name)) + _("path_pattern: Invalid pattern %s.%s - bad syntax") % (self.alias, name)) return False return True @@ -146,13 +146,13 @@ for alias, value in meu.suffix_config_items(ui, "path_pattern", "local"): if alias not in self.patterns: self.patterns[alias] = PatternPair(alias) - ui.debug(_("Parsing local side of path pattern %s") % alias) + ui.debug(_("path_pattern: Parsing local side of path pattern %s") % alias) self.patterns[alias].learn_local(value, ui) # Read «sth».remote for alias, value in meu.suffix_config_items(ui, "path_pattern", "remote"): if alias not in self.patterns: self.patterns[alias] = PatternPair(alias) - ui.debug(_("Parsing remote side of path pattern %s") % alias) + ui.debug(_("path_pattern: Parsing remote side of path pattern %s") % alias) self.patterns[alias].learn_remote(value, ui) # Read «sth».enforce for alias, value in meu.suffix_configbool_items(ui, "path_pattern", "enforce"): @@ -176,9 +176,9 @@ expanded = pattern_pair.lookup_remote(repo.root, ui) if expanded: if (not pattern_pair.enforce) and (path_name in known_paths): - ui.debug(_("Ignoring path pattern %s as repo %s has own path of this name\n") % (path_name, repo.root)) + ui.debug(_("path_pattern: Ignoring path pattern %s as repo %s has own path of this name\n") % (path_name, repo.root)) else: - ui.debug(_("Defining path %s as %s\n") % (path_name, expanded)) + ui.debug(_("path_pattern: Defining path %s as %s\n") % (path_name, expanded)) ui.setconfig("paths", path_name, expanded) def print_patterns(self, ui, list_repos=False):