comparison mercurial/cmdutil.py @ 24059:8d295ce6e488

graphlog: remove too early return from getgraphlogrevs() for empty repo Even if repository is empty, null revision should exist.
author Yuya Nishihara <yuya@tcha.org>
date Thu, 05 Feb 2015 23:14:44 +0900
parents 942a5a34b2d0
children eb1c9700d19d
comparison
equal deleted inserted replaced
24058:d1fcff9400c9 24059:8d295ce6e488
1828 and file patterns or None, and used to filter 'revs'. If --stat or 1828 and file patterns or None, and used to filter 'revs'. If --stat or
1829 --patch are not passed filematcher is None. Otherwise it is a 1829 --patch are not passed filematcher is None. Otherwise it is a
1830 callable taking a revision number and returning a match objects 1830 callable taking a revision number and returning a match objects
1831 filtering the files to be detailed when displaying the revision. 1831 filtering the files to be detailed when displaying the revision.
1832 """ 1832 """
1833 if not len(repo):
1834 return [], None, None
1835 limit = loglimit(opts) 1833 limit = loglimit(opts)
1836 # Default --rev value depends on --follow but --follow behaviour 1834 # Default --rev value depends on --follow but --follow behaviour
1837 # depends on revisions resolved from --rev... 1835 # depends on revisions resolved from --rev...
1838 follow = opts.get('follow') or opts.get('follow_first') 1836 follow = opts.get('follow') or opts.get('follow_first')
1839 possiblyunsorted = False # whether revs might need sorting 1837 possiblyunsorted = False # whether revs might need sorting