Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 16023:90f8b8dd0326 stable
push: return 1 if no changes found (issue3228)
Currently we have the following return codes if nothing is found:
commit incoming outgoing pull push
intended 1 1 1 1 1
documented 1 1 1 0 1
actual 1 1 1 0 0
This fixes the lower-right entry.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 30 Jan 2012 11:32:09 -0600 |
parents | 7460f3a1fd6c |
children | 308406677e9d |
line wrap: on
line diff
--- a/mercurial/localrepo.py Mon Jan 30 11:26:20 2012 -0600 +++ b/mercurial/localrepo.py Mon Jan 30 11:32:09 2012 -0600 @@ -1592,7 +1592,8 @@ def push(self, remote, force=False, revs=None, newbranch=False): '''Push outgoing changesets (limited by revs) from the current repository to remote. Return an integer: - - 0 means HTTP error *or* nothing to push + - None means nothing to push + - 0 means HTTP error - 1 means we pushed and remote head count is unchanged *or* we have outgoing changesets but refused to push - other values as described by addchangegroup() @@ -1626,7 +1627,7 @@ if not outgoing.missing: # nothing to push scmutil.nochangesfound(self.ui, outgoing.excluded) - ret = 1 + ret = None else: # something to push if not force: