Did I find the right examples for you? yes no

All Samples(20)  |  Call(20)  |  Derive(0)  |  Import(0)

src/m/e/mercurial-2.9.1/mercurial/commands.py   Mercurial(Download)
    date = opts.get('date')
    if date:
        opts['date'] = util.parsedate(date)
 
    cmdutil.checkunfinished(repo)
def debugdate(ui, date, range=None, **opts):
    """parse and display a date"""
    if opts["extended"]:
        d = util.parsedate(date, util.extendeddateformats)
    else:
        d = util.parsedate(date)
    date = opts.get('date')
    if date:
        opts['date'] = util.parsedate(date)
 
    editor = cmdutil.commiteditor
        date = opts.get('date')
        if date:
            date = util.parsedate(date)
 
        if opts.get('edit'):

src/h/g/hg-HEAD/mercurial/commands.py   hg(Download)
    date = opts.get('date')
    if date:
        opts['date'] = util.parsedate(date)
 
    cmdutil.checkunfinished(repo)
def debugdate(ui, date, range=None, **opts):
    """parse and display a date"""
    if opts["extended"]:
        d = util.parsedate(date, util.extendeddateformats)
    else:
        d = util.parsedate(date)
    date = opts.get('date')
    if date:
        opts['date'] = util.parsedate(date)
 
    update = not opts.get('bypass')
        date = opts.get('date')
        if date:
            date = util.parsedate(date)
 
        if opts.get('edit'):

src/m/e/mercurial-2.9.1/mercurial/templatefilters.py   Mercurial(Download)
def localdate(text):
    """:localdate: Date. Converts a date to local date."""
    return (util.parsedate(text)[0], util.makedate()[1])
 
def nonempty(str):

src/h/g/hg-HEAD/mercurial/templatefilters.py   hg(Download)
def localdate(text):
    """:localdate: Date. Converts a date to local date."""
    return (util.parsedate(text)[0], util.makedate()[1])
 
def nonempty(str):

src/m/e/mercurial-2.9.1/mercurial/cmdutil.py   Mercurial(Download)
def commit(ui, repo, commitfunc, pats, opts):
    '''commit the specified files or all outstanding changes'''
    date = opts.get('date')
    if date:
        opts['date'] = util.parsedate(date)

src/h/g/hg-HEAD/mercurial/cmdutil.py   hg(Download)
def commit(ui, repo, commitfunc, pats, opts):
    '''commit the specified files or all outstanding changes'''
    date = opts.get('date')
    if date:
        opts['date'] = util.parsedate(date)

src/m/e/mercurial-2.9.1/mercurial/context.py   Mercurial(Download)
        self._text = text
        if date:
            self._date = util.parsedate(date)
        if user:
            self._user = user
        self._node = None
        self._text = text
        self._date = date and util.parsedate(date) or util.makedate()
        self._user = user
        parents = [(p or nullid) for p in parents]

src/h/g/hg-HEAD/mercurial/context.py   hg(Download)
        self._text = text
        if date:
            self._date = util.parsedate(date)
        if user:
            self._user = user
        self._node = None
        self._text = text
        self._date = date and util.parsedate(date) or util.makedate()
        self._user = user
        parents = [(p or nullid) for p in parents]

src/m/e/mercurial-2.9.1/mercurial/changelog.py   Mercurial(Download)
 
        if date:
            parseddate = "%d %d" % util.parsedate(date)
        else:
            parseddate = "%d %d" % util.makedate()

src/h/g/hg-HEAD/mercurial/changelog.py   hg(Download)
 
        if date:
            parseddate = "%d %d" % util.parsedate(date)
        else:
            parseddate = "%d %d" % util.makedate()