Mercurial > hg
comparison hgext/largefiles/overrides.py @ 32301:8a87bfc5bebb
largefiles: move identical statement to after if/else
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 16 May 2017 17:47:27 -0700 |
parents | 09fb3d3b1b3a |
children | e8569cc131d1 |
comparison
equal
deleted
inserted
replaced
32300:bd0fd3ff9916 | 32301:8a87bfc5bebb |
---|---|
345 if os.path.isabs(m._cwd): | 345 if os.path.isabs(m._cwd): |
346 f = f[len(back):] | 346 f = f[len(back):] |
347 else: | 347 else: |
348 f = m._cwd + '/' + f | 348 f = m._cwd + '/' + f |
349 return back + lfutil.standin(f) | 349 return back + lfutil.standin(f) |
350 | |
351 pats.update(fixpats(f, tostandin) for f in p) | |
352 else: | 350 else: |
353 def tostandin(f): | 351 def tostandin(f): |
354 if lfutil.isstandin(f): | 352 if lfutil.isstandin(f): |
355 return f | 353 return f |
356 return lfutil.standin(f) | 354 return lfutil.standin(f) |
357 pats.update(fixpats(f, tostandin) for f in p) | 355 pats.update(fixpats(f, tostandin) for f in p) |
358 | 356 |
359 for i in range(0, len(m._files)): | 357 for i in range(0, len(m._files)): |
360 # Don't add '.hglf' to m.files, since that is already covered by '.' | 358 # Don't add '.hglf' to m.files, since that is already covered by '.' |
361 if m._files[i] == '.': | 359 if m._files[i] == '.': |
362 continue | 360 continue |