Skip to content
Snippets Groups Projects
Commit cb1f40fb authored by Siddharth Agarwal's avatar Siddharth Agarwal
Browse files

hgrepo.push: drop support for Mercurial < 1.6

parent c1ac1c34
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@
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
......@@ -20,12 +20,7 @@
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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment