##// END OF EJS Templates
parents: change parents command to use filectx...
Durham Goode -
r19333:0cfb62e0 default
parent child Browse files
Show More
@@ -4356,8 +4356,10 b' def parents(ui, repo, file_=None, **opts'
4356 pass
4356 pass
4357 if not filenodes:
4357 if not filenodes:
4358 raise util.Abort(_("'%s' not found in manifest!") % file_)
4358 raise util.Abort(_("'%s' not found in manifest!") % file_)
4359 fl = repo.file(file_)
4359 p = []
4360 p = [repo.lookup(fl.linkrev(fl.rev(fn))) for fn in filenodes]
4360 for fn in filenodes:
4361 fctx = repo.filectx(file_, fileid=fn)
4362 p.append(fctx.node())
4361 else:
4363 else:
4362 p = [cp.node() for cp in ctx.parents()]
4364 p = [cp.node() for cp in ctx.parents()]
4363
4365
General Comments 0
You need to be logged in to leave comments. Login now