hgext/largefiles/basestore.py
branchstable
changeset 15943 f9efb325ea32
parent 15319 9da7e96cd5c2
child 16154 9b072a5f8f92
equal deleted inserted replaced
15942:d7a34c07e69b 15943:f9efb325ea32
   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':