##// END OF EJS Templates
merge with stable
Matt Mackall -
r16451:9c431cfd merge default
parent child Browse files
Show More
@@ -786,12 +786,21 class svnsubrepo(abstractsubrepo):
786 return True
786 return True
787
787
788 def files(self):
788 def files(self):
789 output = self._svncommand(['list'])
789 output = self._svncommand(['list', '--recursive', '--xml'])[0]
790 # This works because svn forbids \n in filenames.
790 doc = xml.dom.minidom.parseString(output)
791 return output.splitlines()
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 def filedata(self, name):
802 def filedata(self, name):
794 return self._svncommand(['cat'], name)
803 return self._svncommand(['cat'], name)[0]
795
804
796
805
797 class gitsubrepo(abstractsubrepo):
806 class gitsubrepo(abstractsubrepo):
@@ -535,3 +535,16 First, create that condition in the repo
535 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
535 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
536 $ test -f recreated/somethingold
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