Show More
@@ -501,6 +501,9 b' class abstractsubrepo(object):' | |||||
501 | % (substate[0], substate[2])) |
|
501 | % (substate[0], substate[2])) | |
502 | return [] |
|
502 | return [] | |
503 |
|
503 | |||
|
504 | def shortid(self, revid): | |||
|
505 | return revid | |||
|
506 | ||||
504 | class hgsubrepo(abstractsubrepo): |
|
507 | class hgsubrepo(abstractsubrepo): | |
505 | def __init__(self, ctx, path, state): |
|
508 | def __init__(self, ctx, path, state): | |
506 | self._path = path |
|
509 | self._path = path | |
@@ -866,6 +869,9 b' class hgsubrepo(abstractsubrepo):' | |||||
866 | pats = [] |
|
869 | pats = [] | |
867 | cmdutil.revert(ui, self._repo, ctx, parents, *pats, **opts) |
|
870 | cmdutil.revert(ui, self._repo, ctx, parents, *pats, **opts) | |
868 |
|
871 | |||
|
872 | def shortid(self, revid): | |||
|
873 | return revid[:12] | |||
|
874 | ||||
869 | class svnsubrepo(abstractsubrepo): |
|
875 | class svnsubrepo(abstractsubrepo): | |
870 | def __init__(self, ctx, path, state): |
|
876 | def __init__(self, ctx, path, state): | |
871 | self._path = path |
|
877 | self._path = path | |
@@ -1561,6 +1567,9 b' class gitsubrepo(abstractsubrepo):' | |||||
1561 | deleted = unknown = ignored = clean = [] |
|
1567 | deleted = unknown = ignored = clean = [] | |
1562 | return modified, added, removed, deleted, unknown, ignored, clean |
|
1568 | return modified, added, removed, deleted, unknown, ignored, clean | |
1563 |
|
1569 | |||
|
1570 | def shortid(self, revid): | |||
|
1571 | return revid[:7] | |||
|
1572 | ||||
1564 | types = { |
|
1573 | types = { | |
1565 | 'hg': hgsubrepo, |
|
1574 | 'hg': hgsubrepo, | |
1566 | 'svn': svnsubrepo, |
|
1575 | 'svn': svnsubrepo, |
General Comments 0
You need to be logged in to leave comments.
Login now