Show More
@@ -170,7 +170,7 b' class changelog(baselog):' | |||||
170 | matches = int( |
|
170 | matches = int( | |
171 | self._db.execute( |
|
171 | self._db.execute( | |
172 | 'SELECT COUNT(*) FROM changelog WHERE node LIKE ?', |
|
172 | 'SELECT COUNT(*) FROM changelog WHERE node LIKE ?', | |
173 |
(pycompat.sysstr( |
|
173 | (pycompat.sysstr(candidate + b'%'),), | |
174 | ).fetchone()[0] |
|
174 | ).fetchone()[0] | |
175 | ) |
|
175 | ) | |
176 | if matches == 1: |
|
176 | if matches == 1: |
@@ -180,10 +180,6 b' hg log FILE' | |||||
180 | summary: Add beta |
|
180 | summary: Add beta | |
181 |
|
181 | |||
182 |
|
182 | |||
183 | node|shortest works correctly |
|
|||
184 | $ hg log -r tip --template "{node|shortest}\n" |
|
|||
185 | 6626 |
|
|||
186 |
|
||||
187 | hg annotate |
|
183 | hg annotate | |
188 |
|
184 | |||
189 | $ hg annotate alpha |
|
185 | $ hg annotate alpha | |
@@ -221,3 +217,15 b' hg and git status both clean' | |||||
221 | nothing to commit, working tree clean |
|
217 | nothing to commit, working tree clean | |
222 | $ hg status |
|
218 | $ hg status | |
223 |
|
219 | |||
|
220 | ||||
|
221 | node|shortest works correctly | |||
|
222 | $ hg log -T '{node}\n' | sort | |||
|
223 | 3d9be8deba43482be2c81a4cb4be1f10d85fa8bc | |||
|
224 | 6626247b7dc8f231b183b8a4761c89139baca2ad | |||
|
225 | a1983dd7fb19cbd83ad5a1c2fc8bf3d775dea12f | |||
|
226 | ae1ab744f95bfd5b07cf573baef98a778058537b | |||
|
227 | c5864c9d16fb3431fe2c175ff84dc6accdbb2c18 | |||
|
228 | d8ee22687733a1991813560b15128cd9734f4b48 | |||
|
229 | $ hg log -r ae1ab744f95bfd5b07cf573baef98a778058537b --template "{shortest(node,1)}\n" | |||
|
230 | ae | |||
|
231 |
General Comments 0
You need to be logged in to leave comments.
Login now