Show More
@@ -488,6 +488,7 class histeditaction(object): | |||
|
488 | 488 | repo.ui.pushbuffer(error=True, labeled=True) |
|
489 | 489 | hg.update(repo, self.state.parentctxnode, quietempty=True) |
|
490 | 490 | stats = applychanges(repo.ui, repo, rulectx, {}) |
|
491 | repo.dirstate.setbranch(rulectx.branch()) | |
|
491 | 492 | if stats and stats[3] > 0: |
|
492 | 493 | buf = repo.ui.popbuffer() |
|
493 | 494 | repo.ui.write(*buf) |
@@ -918,7 +918,7 def max_(context, mapping, args, **kwarg | |||
|
918 | 918 | """Return the max of an iterable""" |
|
919 | 919 | if len(args) != 1: |
|
920 | 920 | # i18n: "max" is a keyword |
|
921 |
raise error.ParseError(_("max expects one argument |
|
|
921 | raise error.ParseError(_("max expects one argument")) | |
|
922 | 922 | |
|
923 | 923 | iterable = evalfuncarg(context, mapping, args[0]) |
|
924 | 924 | try: |
@@ -933,7 +933,7 def min_(context, mapping, args, **kwarg | |||
|
933 | 933 | """Return the min of an iterable""" |
|
934 | 934 | if len(args) != 1: |
|
935 | 935 | # i18n: "min" is a keyword |
|
936 |
raise error.ParseError(_("min expects one argument |
|
|
936 | raise error.ParseError(_("min expects one argument")) | |
|
937 | 937 | |
|
938 | 938 | iterable = evalfuncarg(context, mapping, args[0]) |
|
939 | 939 | try: |
@@ -958,7 +958,7 def obsfateoperations(context, mapping, | |||
|
958 | 958 | """Compute obsfate related information based on markers (EXPERIMENTAL)""" |
|
959 | 959 | if len(args) != 1: |
|
960 | 960 | # i18n: "obsfateoperations" is a keyword |
|
961 |
raise error.ParseError(_("obsfateoperations expects one argument |
|
|
961 | raise error.ParseError(_("obsfateoperations expects one argument")) | |
|
962 | 962 | |
|
963 | 963 | markers = evalfuncarg(context, mapping, args[0]) |
|
964 | 964 | |
@@ -975,7 +975,7 def obsfatedate(context, mapping, args): | |||
|
975 | 975 | """Compute obsfate related information based on markers (EXPERIMENTAL)""" |
|
976 | 976 | if len(args) != 1: |
|
977 | 977 | # i18n: "obsfatedate" is a keyword |
|
978 |
raise error.ParseError(_("obsfatedate expects one argument |
|
|
978 | raise error.ParseError(_("obsfatedate expects one argument")) | |
|
979 | 979 | |
|
980 | 980 | markers = evalfuncarg(context, mapping, args[0]) |
|
981 | 981 | |
@@ -992,7 +992,7 def obsfateusers(context, mapping, args) | |||
|
992 | 992 | """Compute obsfate related information based on markers (EXPERIMENTAL)""" |
|
993 | 993 | if len(args) != 1: |
|
994 | 994 | # i18n: "obsfateusers" is a keyword |
|
995 |
raise error.ParseError(_("obsfateusers expects one argument |
|
|
995 | raise error.ParseError(_("obsfateusers expects one argument")) | |
|
996 | 996 | |
|
997 | 997 | markers = evalfuncarg(context, mapping, args[0]) |
|
998 | 998 |
@@ -454,3 +454,36 Now, let's try to fold the second commit | |||
|
454 | 454 | rename to another-dir/renamed-file |
|
455 | 455 | |
|
456 | 456 | $ cd .. |
|
457 | ||
|
458 | Test that branches are preserved and stays active | |
|
459 | ------------------------------------------------- | |
|
460 | ||
|
461 | $ hg init repo-with-branch | |
|
462 | $ cd repo-with-branch | |
|
463 | $ echo a > a | |
|
464 | $ hg add a | |
|
465 | $ hg commit -m A | |
|
466 | $ hg branch foo | |
|
467 | marked working directory as branch foo | |
|
468 | (branches are permanent and global, did you want a bookmark?) | |
|
469 | $ echo a > b | |
|
470 | $ hg add b | |
|
471 | $ hg commit -m foo-B | |
|
472 | $ echo a > c | |
|
473 | $ hg add c | |
|
474 | $ hg commit -m foo-C | |
|
475 | ||
|
476 | $ hg branch | |
|
477 | foo | |
|
478 | $ echo "pick efefa76d6dc3 2 foo-C" >> cmd | |
|
479 | $ echo "pick 7336e7550422 1 foo-B" >> cmd | |
|
480 | ||
|
481 | $ HGEDITOR=cat hg histedit -r ".^" --commands cmd --quiet | |
|
482 | $ hg log --template '{rev} {branch}\n' | |
|
483 | 2 foo | |
|
484 | 1 foo | |
|
485 | 0 default | |
|
486 | $ hg branch | |
|
487 | foo | |
|
488 | ||
|
489 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now