Mercurial > hg > hg-git
changeset 680:cb1f40fb27fb
hgrepo.push: drop support for Mercurial < 1.6
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Wed, 19 Feb 2014 15:55:45 -0800 |
parents | c1ac1c34378f |
children | 18a3dbd0306f |
files | hggit/hgrepo.py |
diffstat | 1 files changed, 2 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/hggit/hgrepo.py +++ b/hggit/hgrepo.py @@ -16,16 +16,11 @@ return super(hgrepo, self).pull(remote, heads, force) # TODO figure out something useful to do with the newbranch param - def push(self, remote, force=False, revs=None, newbranch=None): + def push(self, remote, force=False, revs=None, newbranch=False): if isinstance(remote, gitrepo): return self.githandler.push(remote.path, revs, force) else: #pragma: no cover - # newbranch was added in 1.6 - if newbranch is None: - return super(hgrepo, self).push(remote, force, revs) - else: - return super(hgrepo, self).push(remote, force, revs, - newbranch) + return super(hgrepo, self).push(remote, force, revs, newbranch) def findoutgoing(self, remote, base=None, heads=None, force=False): if isinstance(remote, gitrepo):