Mercurial > public > mercurial-scm > hg-stable
diff hgext/largefiles/lfcommands.py @ 16247:d87d9d8a8e03
largefiles: remove use of underscores that breaks coding convention
author | Na'Tosha Bard <natosha@unity3d.com> |
---|---|
date | Fri, 09 Mar 2012 16:11:52 +0100 |
parents | ce292f1379ba |
children | 290850e7aa43 |
line wrap: on
line diff
--- a/hgext/largefiles/lfcommands.py Fri Mar 09 15:26:13 2012 +0100 +++ b/hgext/largefiles/lfcommands.py Fri Mar 09 16:11:52 2012 +0100 @@ -58,7 +58,7 @@ # Lock destination to prevent modification while it is converted to. # Don't need to lock src because we are just reading from its history # which can't change. - dst_lock = rdst.lock() + dstlock = rdst.lock() # Get a list of all changesets in the source. The easy way to do this # is to simply walk the changelog, using changelog.nodesbewteen(). @@ -113,7 +113,7 @@ if not success: # we failed, remove the new directory shutil.rmtree(rdst.root) - dst_lock.release() + dstlock.release() def _addchangeset(ui, rsrc, rdst, ctx, revmap): # Convert src parents to dst parents @@ -451,7 +451,7 @@ expecthash != lfutil.hashfile(abslfile))): if not lfutil.copyfromcache(repo, expecthash, lfile): # use normallookup() to allocate entry in largefiles dirstate, - # because lack of it misleads lfiles_repo.status() into + # because lack of it misleads lfilesrepo.status() into # recognition that such cache missing files are REMOVED. lfdirstate.normallookup(lfile) return None # don't try to set the mode