##// END OF EJS Templates
Merge with crew-stable
Patrick Mezard -
r9430:b5e9037d merge default
parent child Browse files
Show More
@@ -106,13 +106,12 b' PyDoc_STRVAR('
106
106
107 static PyObject *remove_watch(PyObject *self, PyObject *args)
107 static PyObject *remove_watch(PyObject *self, PyObject *args)
108 {
108 {
109 PyObject *ret = NULL;
110 uint32_t wd;
109 uint32_t wd;
111 int fd;
110 int fd;
112 int r;
111 int r;
113
112
114 if (!PyArg_ParseTuple(args, "iI:remove_watch", &fd, &wd))
113 if (!PyArg_ParseTuple(args, "iI:remove_watch", &fd, &wd))
115 goto bail;
114 return NULL;
116
115
117 Py_BEGIN_ALLOW_THREADS
116 Py_BEGIN_ALLOW_THREADS
118 r = inotify_rm_watch(fd, wd);
117 r = inotify_rm_watch(fd, wd);
@@ -120,18 +119,11 b' static PyObject *remove_watch(PyObject *'
120
119
121 if (r == -1) {
120 if (r == -1) {
122 PyErr_SetFromErrno(PyExc_OSError);
121 PyErr_SetFromErrno(PyExc_OSError);
123 goto bail;
122 return NULL;
124 }
123 }
125
124
126 Py_INCREF(Py_None);
125 Py_INCREF(Py_None);
127
126 return Py_None;
128 goto done;
129
130 bail:
131 Py_CLEAR(ret);
132
133 done:
134 return ret;
135 }
127 }
136
128
137 PyDoc_STRVAR(
129 PyDoc_STRVAR(
@@ -2155,7 +2155,8 b' def merge(ui, repo, node=None, **opts):'
2155 roots, heads = [common.node()], [p2.node()]
2155 roots, heads = [common.node()], [p2.node()]
2156 displayer = cmdutil.show_changeset(ui, repo, opts)
2156 displayer = cmdutil.show_changeset(ui, repo, opts)
2157 for node in repo.changelog.nodesbetween(roots=roots, heads=heads)[0]:
2157 for node in repo.changelog.nodesbetween(roots=roots, heads=heads)[0]:
2158 displayer.show(repo[node])
2158 if node not in roots:
2159 displayer.show(repo[node])
2159 return 0
2160 return 0
2160
2161
2161 return hg.merge(repo, node, force=opts.get('force'))
2162 return hg.merge(repo, node, force=opts.get('force'))
@@ -92,8 +92,6 b' static PyObject *parse_manifest(PyObject'
92 goto bail;
92 goto bail;
93
93
94 if (nlen > 40) {
94 if (nlen > 40) {
95 PyObject *flags;
96
97 flags = PyString_FromStringAndSize(zero + 41,
95 flags = PyString_FromStringAndSize(zero + 41,
98 nlen - 40);
96 nlen - 40);
99 if (!flags)
97 if (!flags)
@@ -1,9 +1,4 b''
1 created new head
1 created new head
2 changeset: 0:310fd17130da
3 user: test
4 date: Mon Jan 12 13:46:40 1970 +0000
5 summary: add foo
6
7 changeset: 1:7731dad1c2b9
2 changeset: 1:7731dad1c2b9
8 user: test
3 user: test
9 date: Mon Jan 12 13:46:40 1970 +0000
4 date: Mon Jan 12 13:46:40 1970 +0000
@@ -13,11 +13,6 b" abort: branch 'default' has 3 heads - pl"
13 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
13 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
14 (branch merge, don't forget to commit)
14 (branch merge, don't forget to commit)
15 % should succeed - 2 heads
15 % should succeed - 2 heads
16 changeset: 1:ba677d0156c1
17 user: test
18 date: Thu Jan 01 00:00:00 1970 +0000
19 summary: b
20
21 changeset: 3:903c264cdf57
16 changeset: 3:903c264cdf57
22 parent: 1:ba677d0156c1
17 parent: 1:ba677d0156c1
23 user: test
18 user: test
@@ -1,11 +1,6 b''
1 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
1 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
2 created new head
2 created new head
3 %% no merges expected
3 %% no merges expected
4 changeset: 0:98e00378acd0
5 user: test
6 date: Mon Jan 12 13:46:40 1970 +0000
7 summary: commit #0
8
9 changeset: 1:4ee19afe4659
4 changeset: 1:4ee19afe4659
10 user: test
5 user: test
11 date: Mon Jan 12 13:46:40 1970 +0000
6 date: Mon Jan 12 13:46:40 1970 +0000
General Comments 0
You need to be logged in to leave comments. Login now