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