Show More
@@ -71,7 +71,15 b' def expandpull(pullop, includepats, excl' | |||
|
71 | 71 | includepats, excludepats, heads) |
|
72 | 72 | pullop.repo.ui.debug('Expanded narrowspec to inc=%s, exc=%s\n' % ( |
|
73 | 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 | 84 | def clonenarrowcmd(orig, ui, repo, *args, **opts): |
|
77 | 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