Commits

Jason Harris committed 85d26c2

Allow cedit to work with .dotted properties like the following:
hg cedit -a "ui.ignore.other = /Users/jason/otherhgignore"
hg cedit -d "ui.ignore.other"

Comments (0)

Files changed (1)

     Sets option given in optstring in every path given in paths.
     Creates files, sections, and properties as needed.
     """
-    match = re.search("^([\w\-<>]+)\.([\w\-<>]+)\s*=\s*(.*)", optstring)
+    match = re.search("^([\w\-<>]+)\.([\w\-<>\.]+)\s*=\s*(.*)", optstring)
     if not match:
         ui.warn(_("Invalid add property syntax. See 'hg help cedit'.\n"))
     else:
     with the section, e.g. ui.username
     """
     secmatch = re.search("^\s*([\w\-<>]+)\s*$", delstring)
-    propmatch = re.search("^\s*([\w\-<>]+)\.([\w\-<>]+)\s*$", delstring)
+    propmatch = re.search("^\s*([\w\-<>]+)\.([\w\-<>\.]+)\s*$", delstring)
     if secmatch:
         sec = secmatch.group(1)
         for path in paths: