equal
deleted
inserted
replaced
164 # the config file. Use repo.ui instead. |
164 # the config file. Use repo.ui instead. |
165 def _openstore(repo, remote=None, put=False): |
165 def _openstore(repo, remote=None, put=False): |
166 ui = repo.ui |
166 ui = repo.ui |
167 |
167 |
168 if not remote: |
168 if not remote: |
169 path = (getattr(repo, 'lfpullsource', None) or |
169 lfpullsource = getattr(repo, 'lfpullsource', None) |
170 ui.expandpath('default-push', 'default')) |
170 if lfpullsource: |
|
171 path = ui.expandpath(lfpullsource) |
|
172 else: |
|
173 path = ui.expandpath('default-push', 'default') |
171 |
174 |
172 # ui.expandpath() leaves 'default-push' and 'default' alone if |
175 # ui.expandpath() leaves 'default-push' and 'default' alone if |
173 # they cannot be expanded: fallback to the empty string, |
176 # they cannot be expanded: fallback to the empty string, |
174 # meaning the current directory. |
177 # meaning the current directory. |
175 if path == 'default-push' or path == 'default': |
178 if path == 'default-push' or path == 'default': |