Submitter | Yuya Nishihara |
---|---|
Date | March 19, 2015, 4:23 p.m. |
Message ID | <4d7b156a0f78a14120e0.1426782193@mimosa> |
Download | mbox | patch |
Permalink | /patch/8166/ |
State | Accepted |
Commit | 065b886f61c6255c0ae5f9e4b2ad3945d2d7973f |
Headers | show |
Comments
Patch
diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -1586,6 +1586,10 @@ class committablefilectx(basefilectx): def __nonzero__(self): return True + def linkrev(self): + # linked to self._changectx no matter if file is modified or not + return self.rev() + def parents(self): '''return parent filectxs, following copies if necessary''' def filenode(ctx, path):