[PATCH 1 of 5 STABLE V2] largefiles: exit from outgoing with 1 when nothing is pending (issue3611)
Matt Harbison
matt_harbison at yahoo.com
Sun Sep 9 20:54:52 CDT 2012
# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1346894768 14400
# Branch stable
# Node ID 38f17c53cdaa924161b49ae92d5b82cb225f4f89
# Parent 3ee5d3c372fabcf57c305835dac98da78bdc1837
largefiles: exit from outgoing with 1 when nothing is pending (issue3611)
This maintains the exit codes documented in commands.py.
diff --git a/hgext/largefiles/overrides.py b/hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py
+++ b/hgext/largefiles/overrides.py
@@ -968,7 +968,7 @@
return toupload
def overrideoutgoing(orig, ui, repo, dest=None, **opts):
- orig(ui, repo, dest, **opts)
+ result = orig(ui, repo, dest, **opts)
if opts.pop('large', None):
toupload = getoutgoinglfiles(ui, repo, dest, **opts)
@@ -980,6 +980,8 @@
ui.status(lfutil.splitstandin(file) + '\n')
ui.status('\n')
+ return result
+
def overridesummary(orig, ui, repo, *pats, **opts):
try:
repo.lfstatus = True
diff --git a/tests/test-largefiles.t b/tests/test-largefiles.t
--- a/tests/test-largefiles.t
+++ b/tests/test-largefiles.t
@@ -1144,6 +1144,15 @@
largefiles can be pushed locally (issue3583)
$ hg init dest
$ cd r4
+ $ hg outgoing ../dest
+ comparing with ../dest
+ searching for changes
+ changeset: 0:639881c12b4c
+ tag: tip
+ user: test
+ date: Thu Jan 01 00:00:00 1970 +0000
+ summary: m1
+
$ hg push ../dest
pushing to ../dest
searching for changes
@@ -1152,6 +1161,13 @@
adding manifests
adding file changes
added 1 changesets with 1 changes to 1 files
+
+exit code with nothing outgoing (issue3611)
+ $ hg outgoing ../dest
+ comparing with ../dest
+ searching for changes
+ no changes found
+ [1]
$ cd ..
#if serve
More information about the Mercurial-devel
mailing list