hgext/sparse.py
changeset 43506 9f70512ae2cf
parent 43087 66f2cc210a29
child 44452 9d2b2df2c2ba
--- a/hgext/sparse.py	Sun Nov 10 07:30:14 2019 -0800
+++ b/hgext/sparse.py	Fri Nov 08 11:19:20 2019 -0800
@@ -153,10 +153,10 @@
 
 
 def _clonesparsecmd(orig, ui, repo, *args, **opts):
-    include_pat = opts.get(r'include')
-    exclude_pat = opts.get(r'exclude')
-    enableprofile_pat = opts.get(r'enable_profile')
-    narrow_pat = opts.get(r'narrow')
+    include_pat = opts.get('include')
+    exclude_pat = opts.get('exclude')
+    enableprofile_pat = opts.get('enable_profile')
+    narrow_pat = opts.get('narrow')
     include = exclude = enableprofile = False
     if include_pat:
         pat = include_pat
@@ -209,7 +209,7 @@
     )
 
     def _add(orig, ui, repo, *pats, **opts):
-        if opts.get(r'sparse'):
+        if opts.get('sparse'):
             dirs = set()
             for pat in pats:
                 dirname, basename = util.split(pat)