Changeset View
Changeset View
Standalone View
Standalone View
hgext/histedit.py
Show First 20 Lines • Show All 236 Lines • ▼ Show 20 Line(s) | from mercurial import ( | ||||
rewriteutil, | rewriteutil, | ||||
scmutil, | scmutil, | ||||
state as statemod, | state as statemod, | ||||
util, | util, | ||||
) | ) | ||||
from mercurial.utils import ( | from mercurial.utils import ( | ||||
dateutil, | dateutil, | ||||
stringutil, | stringutil, | ||||
urlutil, | |||||
) | ) | ||||
pickle = util.pickle | pickle = util.pickle | ||||
cmdtable = {} | cmdtable = {} | ||||
command = registrar.command(cmdtable) | command = registrar.command(cmdtable) | ||||
configtable = {} | configtable = {} | ||||
configitem = registrar.configitem(configtable) | configitem = registrar.configitem(configtable) | ||||
▲ Show 20 Lines • Show All 784 Lines • ▼ Show 20 Line(s) | |||||
def findoutgoing(ui, repo, remote=None, force=False, opts=None): | def findoutgoing(ui, repo, remote=None, force=False, opts=None): | ||||
"""utility function to find the first outgoing changeset | """utility function to find the first outgoing changeset | ||||
Used by initialization code""" | Used by initialization code""" | ||||
if opts is None: | if opts is None: | ||||
opts = {} | opts = {} | ||||
dest = ui.expandpath(remote or b'default-push', remote or b'default') | dest = ui.expandpath(remote or b'default-push', remote or b'default') | ||||
dest, branches = hg.parseurl(dest, None)[:2] | dest, branches = hg.parseurl(dest, None)[:2] | ||||
ui.status(_(b'comparing with %s\n') % util.hidepassword(dest)) | ui.status(_(b'comparing with %s\n') % urlutil.hidepassword(dest)) | ||||
revs, checkout = hg.addbranchrevs(repo, repo, branches, None) | revs, checkout = hg.addbranchrevs(repo, repo, branches, None) | ||||
other = hg.peer(repo, opts, dest) | other = hg.peer(repo, opts, dest) | ||||
if revs: | if revs: | ||||
revs = [repo.lookup(rev) for rev in revs] | revs = [repo.lookup(rev) for rev in revs] | ||||
outgoing = discovery.findcommonoutgoing(repo, other, revs, force=force) | outgoing = discovery.findcommonoutgoing(repo, other, revs, force=force) | ||||
▲ Show 20 Lines • Show All 1612 Lines • Show Last 20 Lines |