##// END OF EJS Templates
largefiles: rename 'admin' to more descriptive 'lfstoredir'
Mads Kiilerich -
r18147:79f24931 default
parent child Browse files
Show More
@@ -141,16 +141,16 b' def openlfdirstate(ui, repo, create=True'
141 Return a dirstate object that tracks largefiles: i.e. its root is
141 Return a dirstate object that tracks largefiles: i.e. its root is
142 the repo root, but it is saved in .hg/largefiles/dirstate.
142 the repo root, but it is saved in .hg/largefiles/dirstate.
143 '''
143 '''
144 admin = repo.join(longname)
144 lfstoredir = repo.join(longname)
145 opener = scmutil.opener(admin)
145 opener = scmutil.opener(lfstoredir)
146 lfdirstate = largefilesdirstate(opener, ui, repo.root,
146 lfdirstate = largefilesdirstate(opener, ui, repo.root,
147 repo.dirstate._validate)
147 repo.dirstate._validate)
148
148
149 # If the largefiles dirstate does not exist, populate and create
149 # If the largefiles dirstate does not exist, populate and create
150 # it. This ensures that we create it on the first meaningful
150 # it. This ensures that we create it on the first meaningful
151 # largefiles operation in a new clone.
151 # largefiles operation in a new clone.
152 if create and not os.path.exists(os.path.join(admin, 'dirstate')):
152 if create and not os.path.exists(os.path.join(lfstoredir, 'dirstate')):
153 util.makedirs(admin)
153 util.makedirs(lfstoredir)
154 matcher = getstandinmatcher(repo)
154 matcher = getstandinmatcher(repo)
155 for standin in dirstatewalk(repo.dirstate, matcher):
155 for standin in dirstatewalk(repo.dirstate, matcher):
156 lfile = splitstandin(standin)
156 lfile = splitstandin(standin)
General Comments 0
You need to be logged in to leave comments. Login now