equal
deleted
inserted
replaced
109 raise util.Abort(_('limit must be positive')) |
109 raise util.Abort(_('limit must be positive')) |
110 else: |
110 else: |
111 limit = None |
111 limit = None |
112 return limit |
112 return limit |
113 |
113 |
114 def revsingle(repo, revspec, default=None): |
114 def revsingle(repo, revspec, default='.'): |
115 if not revspec: |
115 if not revspec: |
116 return repo[default] |
116 return repo[default] |
117 |
117 |
118 l = revrange(repo, [revspec]) |
118 l = revrange(repo, [revspec]) |
119 if len(l) < 1: |
119 if len(l) < 1: |