Show More
@@ -85,9 +85,9 b" def _docensor(ui, repo, path, rev='', to" | |||||
85 | fnode = fctx.filenode() |
|
85 | fnode = fctx.filenode() | |
86 | heads = [] |
|
86 | heads = [] | |
87 | for headnode in repo.heads(): |
|
87 | for headnode in repo.heads(): | |
88 | c = repo[headnode] |
|
88 | hc = repo[headnode] | |
89 | if path in c and c.filenode(path) == fnode: |
|
89 | if path in hc and hc.filenode(path) == fnode: | |
90 | heads.append(c) |
|
90 | heads.append(hc) | |
91 | if heads: |
|
91 | if heads: | |
92 | headlist = ', '.join([short(c.node()) for c in heads]) |
|
92 | headlist = ', '.join([short(c.node()) for c in heads]) | |
93 | raise error.Abort(_('cannot censor file in heads (%s)') % headlist, |
|
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