##// END OF EJS Templates
record: update help message to use operation instead of "record" (issue5432)...
Boris Feld -
r32068:51fdedd2 stable
parent child Browse files
Show More
@@ -992,6 +992,38 b' def filterpatch(ui, headers, operation=N'
992 'record': _("record this change to '%s'?"),
992 'record': _("record this change to '%s'?"),
993 'revert': _("revert this change to '%s'?"),
993 'revert': _("revert this change to '%s'?"),
994 }[operation],
994 }[operation],
995 'help': {
996 'discard': _('[Ynesfdaq?]'
997 '$$ &Yes, discard this change'
998 '$$ &No, skip this change'
999 '$$ &Edit this change manually'
1000 '$$ &Skip remaining changes to this file'
1001 '$$ Discard remaining changes to this &file'
1002 '$$ &Done, skip remaining changes and files'
1003 '$$ Discard &all changes to all remaining files'
1004 '$$ &Quit, discarding no changes'
1005 '$$ &? (display help)'),
1006 'record': _('[Ynesfdaq?]'
1007 '$$ &Yes, record this change'
1008 '$$ &No, skip this change'
1009 '$$ &Edit this change manually'
1010 '$$ &Skip remaining changes to this file'
1011 '$$ Record remaining changes to this &file'
1012 '$$ &Done, skip remaining changes and files'
1013 '$$ Record &all changes to all remaining files'
1014 '$$ &Quit, recording no changes'
1015 '$$ &? (display help)'),
1016 'revert': _('[Ynesfdaq?]'
1017 '$$ &Yes, revert this change'
1018 '$$ &No, skip this change'
1019 '$$ &Edit this change manually'
1020 '$$ &Skip remaining changes to this file'
1021 '$$ Revert remaining changes to this &file'
1022 '$$ &Done, skip remaining changes and files'
1023 '$$ Revert &all changes to all remaining files'
1024 '$$ &Quit, reverting no changes'
1025 '$$ &? (display help)')
1026 }[operation]
995 }
1027 }
996
1028
997 def prompt(skipfile, skipall, query, chunk):
1029 def prompt(skipfile, skipall, query, chunk):
@@ -1010,16 +1042,7 b' def filterpatch(ui, headers, operation=N'
1010 if skipfile is not None:
1042 if skipfile is not None:
1011 return skipfile, skipfile, skipall, newpatches
1043 return skipfile, skipfile, skipall, newpatches
1012 while True:
1044 while True:
1013 resps = _('[Ynesfdaq?]'
1045 resps = messages['help']
1014 '$$ &Yes, record this change'
1015 '$$ &No, skip this change'
1016 '$$ &Edit this change manually'
1017 '$$ &Skip remaining changes to this file'
1018 '$$ Record remaining changes to this &file'
1019 '$$ &Done, skip remaining changes and files'
1020 '$$ Record &all changes to all remaining files'
1021 '$$ &Quit, recording no changes'
1022 '$$ &? (display help)')
1023 r = ui.promptchoice("%s %s" % (query, resps))
1046 r = ui.promptchoice("%s %s" % (query, resps))
1024 ui.write("\n")
1047 ui.write("\n")
1025 if r == 8: # ?
1048 if r == 8: # ?
@@ -46,6 +46,7 b' 10 run the same test than 8 from within '
46 > y
46 > y
47 > y
47 > y
48 > y
48 > y
49 > ?
49 > y
50 > y
50 > n
51 > n
51 > n
52 > n
@@ -88,6 +89,17 b' 10 run the same test than 8 from within '
88 3
89 3
89 4
90 4
90 5
91 5
92 revert change 3/6 to 'folder1/g'? [Ynesfdaq?] ?
93
94 y - yes, revert this change
95 n - no, skip this change
96 e - edit this change manually
97 s - skip remaining changes to this file
98 f - revert remaining changes to this file
99 d - done, skip remaining changes and files
100 a - revert all changes to all remaining files
101 q - quit, reverting no changes
102 ? - ? (display help)
91 revert change 3/6 to 'folder1/g'? [Ynesfdaq?] y
103 revert change 3/6 to 'folder1/g'? [Ynesfdaq?] y
92
104
93 @@ -1,5 +2,6 @@
105 @@ -1,5 +2,6 @@
@@ -264,6 +276,7 b' Test --no-backup'
264 M folder1/g
276 M folder1/g
265 $ hg revert --interactive f << EOF
277 $ hg revert --interactive f << EOF
266 > y
278 > y
279 > ?
267 > y
280 > y
268 > n
281 > n
269 > n
282 > n
@@ -279,6 +292,17 b' Test --no-backup'
279 3
292 3
280 4
293 4
281 5
294 5
295 discard change 1/2 to 'f'? [Ynesfdaq?] ?
296
297 y - yes, discard this change
298 n - no, skip this change
299 e - edit this change manually
300 s - skip remaining changes to this file
301 f - discard remaining changes to this file
302 d - done, skip remaining changes and files
303 a - discard all changes to all remaining files
304 q - quit, discarding no changes
305 ? - ? (display help)
282 discard change 1/2 to 'f'? [Ynesfdaq?] y
306 discard change 1/2 to 'f'? [Ynesfdaq?] y
283
307
284 @@ -2,6 +1,5 @@
308 @@ -2,6 +1,5 @@
@@ -436,4 +460,3 b' Check the experimental config to invert '
436 forget added file newfile (Yn)? y
460 forget added file newfile (Yn)? y
437 $ hg status
461 $ hg status
438 ? newfile
462 ? newfile
439
General Comments 0
You need to be logged in to leave comments. Login now