##// END OF EJS Templates
largefiles: preserve exit code from outgoing command (issue3611)...
Matt Harbison -
r17575:98d6a10b stable
parent child Browse files
Show More
@@ -968,7 +968,7 b' def getoutgoinglfiles(ui, repo, dest=Non'
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)
@@ -980,6 +980,8 b' def overrideoutgoing(orig, ui, repo, des'
980 ui.status(lfutil.splitstandin(file) + '\n')
980 ui.status(lfutil.splitstandin(file) + '\n')
981 ui.status('\n')
981 ui.status('\n')
982
982
983 return result
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
@@ -1144,6 +1144,15 b' vanilla clients locked out from largefil'
1144 largefiles can be pushed locally (issue3583)
1144 largefiles can be pushed locally (issue3583)
1145 $ hg init dest
1145 $ hg init dest
1146 $ cd r4
1146 $ cd r4
1147 $ hg outgoing ../dest
1148 comparing with ../dest
1149 searching for changes
1150 changeset: 0:639881c12b4c
1151 tag: tip
1152 user: test
1153 date: Thu Jan 01 00:00:00 1970 +0000
1154 summary: m1
1155
1147 $ hg push ../dest
1156 $ hg push ../dest
1148 pushing to ../dest
1157 pushing to ../dest
1149 searching for changes
1158 searching for changes
@@ -1152,6 +1161,13 b' largefiles can be pushed locally (issue3'
1152 adding manifests
1161 adding manifests
1153 adding file changes
1162 adding file changes
1154 added 1 changesets with 1 changes to 1 files
1163 added 1 changesets with 1 changes to 1 files
1164
1165 exit code with nothing outgoing (issue3611)
1166 $ hg outgoing ../dest
1167 comparing with ../dest
1168 searching for changes
1169 no changes found
1170 [1]
1155 $ cd ..
1171 $ cd ..
1156
1172
1157 #if serve
1173 #if serve
General Comments 0
You need to be logged in to leave comments. Login now