Show More
@@ -85,9 +85,9 b" def _docensor(ui, repo, path, rev='', to" | |||
|
85 | 85 | fnode = fctx.filenode() |
|
86 | 86 | heads = [] |
|
87 | 87 | for headnode in repo.heads(): |
|
88 | c = repo[headnode] | |
|
89 | if path in c and c.filenode(path) == fnode: | |
|
90 | heads.append(c) | |
|
88 | hc = repo[headnode] | |
|
89 | if path in hc and hc.filenode(path) == fnode: | |
|
90 | heads.append(hc) | |
|
91 | 91 | if heads: |
|
92 | 92 | headlist = ', '.join([short(c.node()) for c in heads]) |
|
93 | 93 | raise error.Abort(_('cannot censor file in heads (%s)') % headlist, |
General Comments 0
You need to be logged in to leave comments.
Login now