Mercurial > public > mercurial-scm > hg-stable
diff hgext/largefiles/overrides.py @ 15982:bf502ccc46d7 stable
largefiles: fix transplant for all cases (issue3192)
author | Na'Tosha Bard <natosha@unity3d.com> |
---|---|
date | Wed, 25 Jan 2012 14:10:01 +0100 |
parents | 295f8aeab363 |
children | 32b9aee3602c |
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py Wed Jan 25 03:01:19 2012 +0700 +++ b/hgext/largefiles/overrides.py Wed Jan 25 14:10:01 2012 +0100 @@ -952,6 +952,11 @@ return result def override_transplant(orig, ui, repo, *revs, **opts): - result = orig(ui, repo, *revs, **opts) - lfcommands.updatelfiles(repo.ui, repo) + try: + repo._istransplanting = True + result = orig(ui, repo, *revs, **opts) + lfcommands.updatelfiles(ui, repo, filelist=None, + printmessage=False) + finally: + repo._istransplanting = False return result