Show More
@@ -786,12 +786,21 b' class svnsubrepo(abstractsubrepo):' | |||
|
786 | 786 | return True |
|
787 | 787 | |
|
788 | 788 | def files(self): |
|
789 | output = self._svncommand(['list']) | |
|
790 | # This works because svn forbids \n in filenames. | |
|
791 | return output.splitlines() | |
|
789 | output = self._svncommand(['list', '--recursive', '--xml'])[0] | |
|
790 | doc = xml.dom.minidom.parseString(output) | |
|
791 | paths = [] | |
|
792 | for e in doc.getElementsByTagName('entry'): | |
|
793 | kind = str(e.getAttribute('kind')) | |
|
794 | if kind != 'file': | |
|
795 | continue | |
|
796 | name = ''.join(c.data for c | |
|
797 | in e.getElementsByTagName('name')[0].childNodes | |
|
798 | if c.nodeType == c.TEXT_NODE) | |
|
799 | paths.append(name) | |
|
800 | return paths | |
|
792 | 801 | |
|
793 | 802 | def filedata(self, name): |
|
794 | return self._svncommand(['cat'], name) | |
|
803 | return self._svncommand(['cat'], name)[0] | |
|
795 | 804 | |
|
796 | 805 | |
|
797 | 806 | class gitsubrepo(abstractsubrepo): |
@@ -535,3 +535,16 b' First, create that condition in the repo' | |||
|
535 | 535 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
536 | 536 | $ test -f recreated/somethingold |
|
537 | 537 | |
|
538 | Test archive | |
|
539 | ||
|
540 | $ hg archive -S ../archive-all --debug | |
|
541 | archiving: 0/2 files (0.00%) | |
|
542 | archiving: .hgsub 1/2 files (50.00%) | |
|
543 | archiving: .hgsubstate 2/2 files (100.00%) | |
|
544 | archiving (obstruct): 0/1 files (0.00%) | |
|
545 | archiving (obstruct): 1/1 files (100.00%) | |
|
546 | archiving (s): 0/2 files (0.00%) | |
|
547 | archiving (s): 1/2 files (50.00%) | |
|
548 | archiving (s): 2/2 files (100.00%) | |
|
549 | archiving (recreated): 0/1 files (0.00%) | |
|
550 | archiving (recreated): 1/1 files (100.00%) |
General Comments 0
You need to be logged in to leave comments.
Login now