##// END OF EJS Templates
graft: make skip messages more helpful...
Mads Kiilerich -
r19893:dc4edca3 default
parent child Browse files
Show More
@@ -3021,11 +3021,12 b' def graft(ui, repo, *revs, **opts):'
3021 if n in ids:
3021 if n in ids:
3022 r = repo[n].rev()
3022 r = repo[n].rev()
3023 if r in revs:
3023 if r in revs:
3024 ui.warn(_('skipping already grafted revision %s\n') % r)
3024 ui.warn(_('skipping revision %s (already grafted to %s)\n')
3025 % (r, rev))
3025 revs.remove(r)
3026 revs.remove(r)
3026 elif ids[n] in revs:
3027 elif ids[n] in revs:
3027 ui.warn(_('skipping already grafted revision %s '
3028 ui.warn(_('skipping already grafted revision %s '
3028 '(same origin %d)\n') % (ids[n], r))
3029 '(%s also has origin %d)\n') % (ids[n], rev, r))
3029 revs.remove(ids[n])
3030 revs.remove(ids[n])
3030 elif ctx.hex() in ids:
3031 elif ctx.hex() in ids:
3031 r = ids[ctx.hex()]
3032 r = ids[ctx.hex()]
@@ -117,7 +117,7 b' Graft out of order, skipping a merge and'
117
117
118 $ hg graft 1 5 4 3 'merge()' 2 -n
118 $ hg graft 1 5 4 3 'merge()' 2 -n
119 skipping ungraftable merge revision 6
119 skipping ungraftable merge revision 6
120 skipping already grafted revision 2
120 skipping revision 2 (already grafted to 7)
121 grafting revision 1
121 grafting revision 1
122 grafting revision 5
122 grafting revision 5
123 grafting revision 4
123 grafting revision 4
@@ -126,7 +126,7 b' Graft out of order, skipping a merge and'
126 $ hg graft 1 5 4 3 'merge()' 2 --debug
126 $ hg graft 1 5 4 3 'merge()' 2 --debug
127 skipping ungraftable merge revision 6
127 skipping ungraftable merge revision 6
128 scanning for duplicate grafts
128 scanning for duplicate grafts
129 skipping already grafted revision 2
129 skipping revision 2 (already grafted to 7)
130 grafting revision 1
130 grafting revision 1
131 searching for copies back to rev 1
131 searching for copies back to rev 1
132 unmatched files in local:
132 unmatched files in local:
@@ -196,9 +196,9 b' Graft again:'
196
196
197 $ hg graft 1 5 4 3 'merge()' 2
197 $ hg graft 1 5 4 3 'merge()' 2
198 skipping ungraftable merge revision 6
198 skipping ungraftable merge revision 6
199 skipping already grafted revision 2
199 skipping revision 2 (already grafted to 7)
200 skipping already grafted revision 1
200 skipping revision 1 (already grafted to 8)
201 skipping already grafted revision 5
201 skipping revision 5 (already grafted to 9)
202 grafting revision 4
202 grafting revision 4
203 merging e
203 merging e
204 warning: conflicts during merge.
204 warning: conflicts during merge.
@@ -314,18 +314,18 b' Disallow grafting an already grafted cse'
314 Disallow grafting already grafted csets with the same origin onto each other
314 Disallow grafting already grafted csets with the same origin onto each other
315 $ hg up -q 13
315 $ hg up -q 13
316 $ hg graft 2
316 $ hg graft 2
317 skipping already grafted revision 2
317 skipping revision 2 (already grafted to 13)
318 [255]
318 [255]
319 $ hg graft 7
319 $ hg graft 7
320 skipping already grafted revision 7 (same origin 2)
320 skipping already grafted revision 7 (13 also has origin 2)
321 [255]
321 [255]
322
322
323 $ hg up -q 7
323 $ hg up -q 7
324 $ hg graft 2
324 $ hg graft 2
325 skipping already grafted revision 2
325 skipping revision 2 (already grafted to 7)
326 [255]
326 [255]
327 $ hg graft tip
327 $ hg graft tip
328 skipping already grafted revision 13 (same origin 2)
328 skipping already grafted revision 13 (7 also has origin 2)
329 [255]
329 [255]
330
330
331 Graft with --log
331 Graft with --log
General Comments 0
You need to be logged in to leave comments. Login now