|
@@ -249,14 +249,14 @@ class BaseRepo(object):
|
|
|
if type(wants) is not list:
|
|
|
raise TypeError("determine_wants() did not return a list")
|
|
|
|
|
|
- has_shallows = getattr(graph_walker, 'shallow', False)
|
|
|
- has_unshallows = getattr(graph_walker, 'unshallow', False)
|
|
|
+ shallows = getattr(graph_walker, 'shallow', [])
|
|
|
+ unshallows = getattr(graph_walker, 'unshallow', [])
|
|
|
|
|
|
if wants == []:
|
|
|
|
|
|
|
|
|
|
|
|
- if has_shallows or has_unshallows:
|
|
|
+ if shallows or unshallows:
|
|
|
|
|
|
return None
|
|
|
|
|
@@ -266,10 +266,10 @@ class BaseRepo(object):
|
|
|
|
|
|
|
|
|
|
|
|
- if has_shallows or has_unshallows:
|
|
|
+ if shallows or unshallows:
|
|
|
|
|
|
shallow_grafts = {}
|
|
|
- for shallow in graph_walker.shallow:
|
|
|
+ for shallow in shallows:
|
|
|
shallow_grafts[shallow] = []
|
|
|
self._add_graftpoints(shallow_grafts)
|
|
|
|