##// END OF EJS Templates
subrepo: fix status check on SVN subrepos (issue2445)
Matt Mackall -
r12798:3d6ba8c2 stable
parent child Browse files
Show More
@@ -491,7 +491,7 b' class svnsubrepo(abstractsubrepo):'
491 entries = doc.getElementsByTagName('entry')
491 entries = doc.getElementsByTagName('entry')
492 if not entries:
492 if not entries:
493 return 0
493 return 0
494 return int(entries[0].getAttribute('revision') or 0)
494 return str(entries[0].getAttribute('revision')) or '0'
495
495
496 def _wcchanged(self):
496 def _wcchanged(self):
497 """Return (changes, extchanges) where changes is True
497 """Return (changes, extchanges) where changes is True
@@ -69,6 +69,18 b' add first svn sub with leading whitespac'
69 $ hg ci -m1
69 $ hg ci -m1
70 committing subrepository s
70 committing subrepository s
71
71
72 make sure we avoid empty commits (issue2445)
73
74 $ hg sum
75 parent: 1:* tip (glob)
76 1
77 branch: default
78 commit: (clean)
79 update: (current)
80 $ hg ci -moops
81 nothing changed
82 [1]
83
72 debugsub
84 debugsub
73
85
74 $ hg debugsub
86 $ hg debugsub
@@ -80,6 +92,12 b' change file in svn and hg, commit'
80
92
81 $ echo a >> a
93 $ echo a >> a
82 $ echo alpha >> s/alpha
94 $ echo alpha >> s/alpha
95 $ hg sum
96 parent: 1:* tip (glob)
97 1
98 branch: default
99 commit: 1 modified, 1 subrepos
100 update: (current)
83 $ hg commit -m 'Message!'
101 $ hg commit -m 'Message!'
84 committing subrepository s
102 committing subrepository s
85 Sending*s/alpha (glob)
103 Sending*s/alpha (glob)
General Comments 0
You need to be logged in to leave comments. Login now