Mercurial > hg
comparison mercurial/context.py @ 3152:15d585dcdd1c
context: change filectx repr to use @
Avoids confusion with rev:nodeid syntax used elsewhere
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 25 Sep 2006 16:43:21 -0500 |
parents | 6719b3dd7d50 |
children | e78185746554 5c93dd0ae413 |
comparison
equal
deleted
inserted
replaced
3151:6719b3dd7d50 | 3152:15d585dcdd1c |
---|---|
122 return self._filerev | 122 return self._filerev |
123 else: | 123 else: |
124 raise AttributeError, name | 124 raise AttributeError, name |
125 | 125 |
126 def __repr__(self): | 126 def __repr__(self): |
127 return "<filectx %s:%s>" % (self.path(), short(self.node())) | 127 return "<filectx %s@%s>" % (self.path(), short(self.node())) |
128 | 128 |
129 def filerev(self): return self._filerev | 129 def filerev(self): return self._filerev |
130 def filenode(self): return self._filenode | 130 def filenode(self): return self._filenode |
131 def filelog(self): return self._filelog | 131 def filelog(self): return self._filelog |
132 | 132 |