##// END OF EJS Templates
cmdutil.jsonchangeset: properly compute added and removed files...
Gregory Szorc -
r23734:f4e64759 stable
parent child Browse files
Show More
@@ -1072,7 +1072,7 b' class jsonchangeset(changeset_printer):'
1072 ", ".join('"%s": "%s"' % (j(k), j(v))
1072 ", ".join('"%s": "%s"' % (j(k), j(v))
1073 for k, v in ctx.extra().items()))
1073 for k, v in ctx.extra().items()))
1074
1074
1075 files = ctx.status(ctx.p1())
1075 files = ctx.p1().status(ctx)
1076 self.ui.write(',\n "modified": [%s]' %
1076 self.ui.write(',\n "modified": [%s]' %
1077 ", ".join('"%s"' % j(f) for f in files[0]))
1077 ", ".join('"%s"' % j(f) for f in files[0]))
1078 self.ui.write(',\n "added": [%s]' %
1078 self.ui.write(',\n "added": [%s]' %
@@ -696,8 +696,8 b' Test JSON style:'
696 "manifest": "94961b75a2da554b4df6fb599e5bfc7d48de0c64",
696 "manifest": "94961b75a2da554b4df6fb599e5bfc7d48de0c64",
697 "extra": {"branch": "default"},
697 "extra": {"branch": "default"},
698 "modified": [],
698 "modified": [],
699 "added": ["second"],
699 "added": ["fourth", "third"],
700 "removed": ["fourth", "third"]
700 "removed": ["second"]
701 },
701 },
702 {
702 {
703 "rev": 7,
703 "rev": 7,
@@ -713,8 +713,8 b' Test JSON style:'
713 "manifest": "f2dbc354b94e5ec0b4f10680ee0cee816101d0bf",
713 "manifest": "f2dbc354b94e5ec0b4f10680ee0cee816101d0bf",
714 "extra": {"branch": "default"},
714 "extra": {"branch": "default"},
715 "modified": [],
715 "modified": [],
716 "added": [],
716 "added": ["second"],
717 "removed": ["second"]
717 "removed": []
718 },
718 },
719 {
719 {
720 "rev": 6,
720 "rev": 6,
@@ -747,8 +747,8 b' Test JSON style:'
747 "manifest": "4dc3def4f9b4c6e8de820f6ee74737f91e96a216",
747 "manifest": "4dc3def4f9b4c6e8de820f6ee74737f91e96a216",
748 "extra": {"branch": "default"},
748 "extra": {"branch": "default"},
749 "modified": [],
749 "modified": [],
750 "added": [],
750 "added": ["d"],
751 "removed": ["d"]
751 "removed": []
752 },
752 },
753 {
753 {
754 "rev": 4,
754 "rev": 4,
@@ -798,8 +798,8 b' Test JSON style:'
798 "manifest": "6e0e82995c35d0d57a52aca8da4e56139e06b4b1",
798 "manifest": "6e0e82995c35d0d57a52aca8da4e56139e06b4b1",
799 "extra": {"branch": "default"},
799 "extra": {"branch": "default"},
800 "modified": [],
800 "modified": [],
801 "added": [],
801 "added": ["c"],
802 "removed": ["c"]
802 "removed": []
803 },
803 },
804 {
804 {
805 "rev": 1,
805 "rev": 1,
@@ -815,8 +815,8 b' Test JSON style:'
815 "manifest": "4e8d705b1e53e3f9375e0e60dc7b525d8211fe55",
815 "manifest": "4e8d705b1e53e3f9375e0e60dc7b525d8211fe55",
816 "extra": {"branch": "default"},
816 "extra": {"branch": "default"},
817 "modified": [],
817 "modified": [],
818 "added": [],
818 "added": ["b"],
819 "removed": ["b"]
819 "removed": []
820 },
820 },
821 {
821 {
822 "rev": 0,
822 "rev": 0,
@@ -832,8 +832,8 b' Test JSON style:'
832 "manifest": "a0c8bcbbb45c63b90b70ad007bf38961f64f2af0",
832 "manifest": "a0c8bcbbb45c63b90b70ad007bf38961f64f2af0",
833 "extra": {"branch": "default"},
833 "extra": {"branch": "default"},
834 "modified": [],
834 "modified": [],
835 "added": [],
835 "added": ["a"],
836 "removed": ["a"]
836 "removed": []
837 }
837 }
838 ]
838 ]
839
839
General Comments 0
You need to be logged in to leave comments. Login now