Mercurial > public > mercurial-scm > hg-stable
diff hgext/fetch.py @ 41421:5cb8158a61f7
cleanup: use p1() instead of parents() when we only need the first parent
Differential Revision: https://phab.mercurial-scm.org/D5708
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 25 Jan 2019 23:22:23 -0800 |
parents | c303d65d2e34 |
children | 2372284d9457 |
line wrap: on
line diff
--- a/hgext/fetch.py Fri Jan 25 23:43:11 2019 -0800 +++ b/hgext/fetch.py Fri Jan 25 23:22:23 2019 -0800 @@ -68,7 +68,7 @@ if date: opts['date'] = dateutil.parsedate(date) - parent, _p2 = repo.dirstate.parents() + parent = repo.dirstate.p1() branch = repo.dirstate.branch() try: branchnode = repo.branchtip(branch)