hgext/largefiles/basestore.py
changeset 15252 6e809bb4f969
parent 15169 aa262fff87ac
child 15253 67d010779907
--- a/hgext/largefiles/basestore.py	Thu Oct 13 15:15:32 2011 +0200
+++ b/hgext/largefiles/basestore.py	Wed Oct 12 20:59:27 2011 -0400
@@ -6,7 +6,7 @@
 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2 or any later version.
 
-'''Base class for store implementations and store-related utility code.'''
+'''base class for store implementations and store-related utility code'''
 
 import os
 import tempfile
@@ -168,9 +168,10 @@
     if not remote:
         path = getattr(repo, 'lfpullsource', None) or \
             ui.expandpath('default-push', 'default')
-        # If 'default-push' and 'default' can't be expanded
-        # they are just returned. In that case use the empty string which
-        # use the filescheme.
+
+        # ui.expandpath() leaves 'default-push' and 'default' alone if
+        # they cannot be expanded: fallback to the empty string,
+        # meaning the current directory.
         if path == 'default-push' or path == 'default':
             path = ''
             remote = repo