##// END OF EJS Templates
identity: show trailing '+' for dirty subrepos (issue2839)
Patrick Mezard -
r17255:3e856d8a stable
parent child Browse files
Show More
@@ -3506,7 +3506,9 b' def identify(ui, repo, source=None, rev='
3506 parents = ctx.parents()
3506 parents = ctx.parents()
3507 changed = ""
3507 changed = ""
3508 if default or id or num:
3508 if default or id or num:
3509 changed = util.any(repo.status()) and "+" or ""
3509 if (util.any(repo.status())
3510 or util.any(ctx.sub(s).dirty() for s in ctx.substate)):
3511 changed = '+'
3510 if default or id:
3512 if default or id:
3511 output = ["%s%s" %
3513 output = ["%s%s" %
3512 ('+'.join([hexfunc(p.node()) for p in parents]), changed)]
3514 ('+'.join([hexfunc(p.node()) for p in parents]), changed)]
@@ -430,7 +430,7 b' Sticky subrepositorys, file changes'
430 $ git add f1
430 $ git add f1
431 $ cd ..
431 $ cd ..
432 $ hg id -n
432 $ hg id -n
433 1
433 1+
434 $ cd s
434 $ cd s
435 $ git rev-parse HEAD
435 $ git rev-parse HEAD
436 da5f5b1d8ffcf62fb8327bcd3c89a4367a6018e7
436 da5f5b1d8ffcf62fb8327bcd3c89a4367a6018e7
@@ -487,7 +487,7 b' Sticky subrepository, file changes and r'
487 l
487 l
488 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
488 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
489 $ hg id -n
489 $ hg id -n
490 7
490 7+
491 $ cd s
491 $ cd s
492 $ git rev-parse HEAD
492 $ git rev-parse HEAD
493 aa84837ccfbdfedcdcdeeedc309d73e6eb069edc
493 aa84837ccfbdfedcdcdeeedc309d73e6eb069edc
@@ -313,7 +313,7 b' Sticky subrepositorys, file changes'
313 A f1
313 A f1
314 $ cd ..
314 $ cd ..
315 $ hg id -n
315 $ hg id -n
316 1
316 1+
317 $ cd s
317 $ cd s
318 $ svnversion
318 $ svnversion
319 2M
319 2M
@@ -376,7 +376,7 b' Sticky subrepository, file changes and r'
376 l
376 l
377 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
377 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
378 $ hg id -n
378 $ hg id -n
379 2
379 2+
380 $ cd s
380 $ cd s
381 $ svnversion
381 $ svnversion
382 1M
382 1M
@@ -112,10 +112,16 b' leave sub dirty (and check ui.commitsubr'
112 abort: uncommitted changes in subrepo s
112 abort: uncommitted changes in subrepo s
113 (use --subrepos for recursive commit)
113 (use --subrepos for recursive commit)
114 [255]
114 [255]
115 $ hg id
116 f6affe3fbfaa+ tip
117 $ hg -R s ci -mc
118 $ hg id
119 f6affe3fbfaa+ tip
120 $ echo d > s/a
115 $ hg ci -m4
121 $ hg ci -m4
116 committing subrepository s
122 committing subrepository s
117 $ hg tip -R s
123 $ hg tip -R s
118 changeset: 3:1c833a7a9e3a
124 changeset: 4:02dcf1d70411
119 tag: tip
125 tag: tip
120 user: test
126 user: test
121 date: Thu Jan 01 00:00:00 1970 +0000
127 date: Thu Jan 01 00:00:00 1970 +0000
@@ -135,7 +141,7 b' restore'
135 $ hg debugsub
141 $ hg debugsub
136 path s
142 path s
137 source s
143 source s
138 revision 1c833a7a9e3a4445c711aaf0f012379cd0d4034e
144 revision 02dcf1d704118aee3ee306ccfa1910850d5b05ef
139
145
140 new branch for merge tests
146 new branch for merge tests
141
147
@@ -741,7 +747,7 b' Sticky subrepositorys, file changes'
741 $ hg add -S s/f1
747 $ hg add -S s/f1
742 $ hg add -S t/f1
748 $ hg add -S t/f1
743 $ hg id
749 $ hg id
744 365661e5936a
750 365661e5936a+
745 $ hg -R s id
751 $ hg -R s id
746 fc627a69481f+
752 fc627a69481f+
747 $ hg -R t id
753 $ hg -R t id
@@ -785,7 +791,7 b' Sticky subrepository, revision updates'
785 $ hg id
791 $ hg id
786 e45c8b14af55+
792 e45c8b14af55+
787 $ hg -R s id
793 $ hg -R s id
788 1c833a7a9e3a
794 02dcf1d70411
789 $ hg -R t id
795 $ hg -R t id
790 7af322bc1198
796 7af322bc1198
791
797
@@ -797,21 +803,21 b' Sticky subrepository, file changes and r'
797 $ hg id
803 $ hg id
798 e45c8b14af55+
804 e45c8b14af55+
799 $ hg -R s id
805 $ hg -R s id
800 1c833a7a9e3a+
806 02dcf1d70411+
801 $ hg -R t id
807 $ hg -R t id
802 7af322bc1198+
808 7af322bc1198+
803 $ hg update tip
809 $ hg update tip
804 subrepository sources for s differ
810 subrepository sources for s differ
805 use (l)ocal source (1c833a7a9e3a) or (r)emote source (12a213df6fa9)?
811 use (l)ocal source (02dcf1d70411) or (r)emote source (12a213df6fa9)?
806 l
812 l
807 subrepository sources for t differ
813 subrepository sources for t differ
808 use (l)ocal source (7af322bc1198) or (r)emote source (52c0adc0515a)?
814 use (l)ocal source (7af322bc1198) or (r)emote source (52c0adc0515a)?
809 l
815 l
810 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
816 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
811 $ hg id
817 $ hg id
812 925c17564ef8 tip
818 925c17564ef8+ tip
813 $ hg -R s id
819 $ hg -R s id
814 1c833a7a9e3a+
820 02dcf1d70411+
815 $ hg -R t id
821 $ hg -R t id
816 7af322bc1198+
822 7af322bc1198+
817
823
General Comments 0
You need to be logged in to leave comments. Login now