Mercurial > hg
comparison hgext/largefiles/overrides.py @ 17575:98d6a10bc401 stable
largefiles: preserve exit code from outgoing command (issue3611)
This maintains the exit codes documented in commands.py.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 05 Sep 2012 21:26:08 -0400 |
parents | e51d4aedace9 |
children | e0081bb5450e |
comparison
equal
deleted
inserted
replaced
17544:26ebc7f72fe6 | 17575:98d6a10bc401 |
---|---|
966 toupload = toupload.union( | 966 toupload = toupload.union( |
967 set([f for f in files if lfutil.isstandin(f) and f in ctx])) | 967 set([f for f in files if lfutil.isstandin(f) and f in ctx])) |
968 return toupload | 968 return toupload |
969 | 969 |
970 def overrideoutgoing(orig, ui, repo, dest=None, **opts): | 970 def overrideoutgoing(orig, ui, repo, dest=None, **opts): |
971 orig(ui, repo, dest, **opts) | 971 result = orig(ui, repo, dest, **opts) |
972 | 972 |
973 if opts.pop('large', None): | 973 if opts.pop('large', None): |
974 toupload = getoutgoinglfiles(ui, repo, dest, **opts) | 974 toupload = getoutgoinglfiles(ui, repo, dest, **opts) |
975 if toupload is None: | 975 if toupload is None: |
976 ui.status(_('largefiles: No remote repo\n')) | 976 ui.status(_('largefiles: No remote repo\n')) |
977 else: | 977 else: |
978 ui.status(_('largefiles to upload:\n')) | 978 ui.status(_('largefiles to upload:\n')) |
979 for file in toupload: | 979 for file in toupload: |
980 ui.status(lfutil.splitstandin(file) + '\n') | 980 ui.status(lfutil.splitstandin(file) + '\n') |
981 ui.status('\n') | 981 ui.status('\n') |
982 | |
983 return result | |
982 | 984 |
983 def overridesummary(orig, ui, repo, *pats, **opts): | 985 def overridesummary(orig, ui, repo, *pats, **opts): |
984 try: | 986 try: |
985 repo.lfstatus = True | 987 repo.lfstatus = True |
986 orig(ui, repo, *pats, **opts) | 988 orig(ui, repo, *pats, **opts) |