Show More
@@ -71,7 +71,15 b' def expandpull(pullop, includepats, excl' | |||||
71 | includepats, excludepats, heads) |
|
71 | includepats, excludepats, heads) | |
72 | pullop.repo.ui.debug('Expanded narrowspec to inc=%s, exc=%s\n' % ( |
|
72 | pullop.repo.ui.debug('Expanded narrowspec to inc=%s, exc=%s\n' % ( | |
73 | includepats, excludepats)) |
|
73 | includepats, excludepats)) | |
74 | return set(includepats), set(excludepats) |
|
74 | ||
|
75 | includepats = set(includepats) | |||
|
76 | excludepats = set(excludepats) | |||
|
77 | ||||
|
78 | # Nefarious remote could supply unsafe patterns. Validate them. | |||
|
79 | narrowspec.validatepatterns(includepats) | |||
|
80 | narrowspec.validatepatterns(excludepats) | |||
|
81 | ||||
|
82 | return includepats, excludepats | |||
75 |
|
83 | |||
76 | def clonenarrowcmd(orig, ui, repo, *args, **opts): |
|
84 | def clonenarrowcmd(orig, ui, repo, *args, **opts): | |
77 | """Wraps clone command, so 'hg clone' first wraps localrepo.clone().""" |
|
85 | """Wraps clone command, so 'hg clone' first wraps localrepo.clone().""" |
General Comments 0
You need to be logged in to leave comments.
Login now