# HG changeset patch # User Greg Ward # Date 1319379811 14400 # Node ID 63455eb771af8a696313239567debffa5010a1da # Parent c681e478c42953a15614fa1b23208c833fabd5ab largefiles: drop more unnecessary compatibility checks diff -r c681e478c429 -r 63455eb771af hgext/largefiles/lfutil.py --- a/hgext/largefiles/lfutil.py Sun Oct 23 16:32:27 2011 -0500 +++ b/hgext/largefiles/lfutil.py Sun Oct 23 10:23:31 2011 -0400 @@ -135,11 +135,8 @@ ''' admin = repo.join(longname) opener = scmutil.opener(admin) - if util.safehasattr(repo.dirstate, '_validate'): - lfdirstate = largefiles_dirstate(opener, ui, repo.root, - repo.dirstate._validate) - else: - lfdirstate = largefiles_dirstate(opener, ui, repo.root) + lfdirstate = largefiles_dirstate(opener, ui, repo.root, + repo.dirstate._validate) # If the largefiles dirstate does not exist, populate and create # it. This ensures that we create it on the first meaningful diff -r c681e478c429 -r 63455eb771af hgext/largefiles/uisetup.py --- a/hgext/largefiles/uisetup.py Sun Oct 23 16:32:27 2011 -0500 +++ b/hgext/largefiles/uisetup.py Sun Oct 23 10:23:31 2011 -0400 @@ -82,12 +82,8 @@ extensions.wrapfunction(hg, 'merge', overrides.hg_merge) extensions.wrapfunction(archival, 'archive', overrides.override_archive) - if util.safehasattr(cmdutil, 'bailifchanged'): - extensions.wrapfunction(cmdutil, 'bailifchanged', - overrides.override_bailifchanged) - else: - extensions.wrapfunction(cmdutil, 'bail_if_changed', - overrides.override_bailifchanged) + extensions.wrapfunction(cmdutil, 'bailifchanged', + overrides.override_bailifchanged) # create the new wireproto commands ... wireproto.commands['putlfile'] = (proto.putlfile, 'sha')