Submitter | Durham Goode |
---|---|
Date | June 26, 2013, 12:52 a.m. |
Message ID | <f63c47a0e5fecc9e2d88.1372207948@dev350.prn1.facebook.com> |
Download | mbox | patch |
Permalink | /patch/1748/ |
State | Accepted |
Commit | 0cfb62e043e86d8576de1a7950625ab8dba0fd89 |
Delegated to: | Kevin Bullock |
Headers | show |
Comments
Patch
diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -4356,8 +4356,10 @@ pass if not filenodes: raise util.Abort(_("'%s' not found in manifest!") % file_) - fl = repo.file(file_) - p = [repo.lookup(fl.linkrev(fl.rev(fn))) for fn in filenodes] + p = [] + for fn in filenodes: + fctx = repo.filectx(file_, fileid=fn) + p.append(fctx.node()) else: p = [cp.node() for cp in ctx.parents()]