##// END OF EJS Templates
largefiles: only update changed largefiles when transplanting
Na'Tosha Bard -
r16246:169525f8 default
parent child Browse files
Show More
@@ -956,10 +956,13 b' def override_rollback(orig, ui, repo, **'
956
956
957 def override_transplant(orig, ui, repo, *revs, **opts):
957 def override_transplant(orig, ui, repo, *revs, **opts):
958 try:
958 try:
959 oldstandins = lfutil.getstandinsstate(repo)
959 repo._istransplanting = True
960 repo._istransplanting = True
960 result = orig(ui, repo, *revs, **opts)
961 result = orig(ui, repo, *revs, **opts)
961 lfcommands.updatelfiles(ui, repo, filelist=None,
962 newstandins = lfutil.getstandinsstate(repo)
962 printmessage=False)
963 filelist = lfutil.getlfilestoupdate(oldstandins, newstandins)
964 lfcommands.updatelfiles(repo.ui, repo, filelist=filelist,
965 printmessage=True)
963 finally:
966 finally:
964 repo._istransplanting = False
967 repo._istransplanting = False
965 return result
968 return result
@@ -728,6 +728,8 b' Test that transplanting a largefile chan'
728 adding manifests
728 adding manifests
729 adding file changes
729 adding file changes
730 added 1 changesets with 2 changes to 2 files
730 added 1 changesets with 2 changes to 2 files
731 getting changed largefiles
732 1 largefiles updated, 0 removed
731 $ hg log --template '{rev}:{node|short} {desc|firstline}\n'
733 $ hg log --template '{rev}:{node|short} {desc|firstline}\n'
732 9:598410d3eb9a modify normal file largefile in repo d
734 9:598410d3eb9a modify normal file largefile in repo d
733 8:a381d2c8c80e modify normal file and largefile in repo b
735 8:a381d2c8c80e modify normal file and largefile in repo b
General Comments 0
You need to be logged in to leave comments. Login now