Show More
@@ -582,6 +582,13 b' def rcpath():' | |||||
582 | _rcpath = osrcpath() |
|
582 | _rcpath = osrcpath() | |
583 | return _rcpath |
|
583 | return _rcpath | |
584 |
|
584 | |||
|
585 | def intrev(repo, rev): | |||
|
586 | """Return integer for a given revision that can be used in comparison or | |||
|
587 | arithmetic operation""" | |||
|
588 | if rev is None: | |||
|
589 | return len(repo) | |||
|
590 | return rev | |||
|
591 | ||||
585 | def revsingle(repo, revspec, default='.'): |
|
592 | def revsingle(repo, revspec, default='.'): | |
586 | if not revspec and revspec != 0: |
|
593 | if not revspec and revspec != 0: | |
587 | return repo[default] |
|
594 | return repo[default] |
General Comments 0
You need to be logged in to leave comments.
Login now