Skip to content

Commit

Permalink
tests: extract log() function for test-pushrebase-eagerepo.t
Browse files Browse the repository at this point in the history
Summary:
* This diff extracta a log() function, so it can be re-used in multiple places.
* This diff also removes debugging flags `--debug -v`

Reviewed By: muirdm

Differential Revision: D64540086

fbshipit-source-id: a67eaf7c55487ae43e7f3693de2283efea4fe116
  • Loading branch information
zzl0 authored and facebook-github-bot committed Oct 18, 2024
1 parent e88f644 commit f957495
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions eden/scm/tests/test-pushrebase-eagerepo.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

$ configure mutation

$ function log() {
> hg log -G -r 'all()' -T '{node|short} {desc} {remotebookmarks} {bookmarks}'
> }

#testcases slapi wireproto

#if wireproto
Expand Down Expand Up @@ -54,20 +58,20 @@ Test fast forward push
@@ -1,1 +1,2 @@
foo
+x
$ hg log -G -r 'all()' -T '{node|short} {desc} {remotebookmarks} {bookmarks}'
$ log
@ ea98a8f95390 changed message remote/master
o 2bb9d20e471c initial

the master bookmark should point to the latest commit
$ newclientrepo client2 test:server
$ hg log -G -r 'all()' -T '{node|short} {desc} {remotebookmarks} {bookmarks}'
$ log
@ ea98a8f95390 changed message remote/master
o 2bb9d20e471c initial

test pushrebase conflicts
$ hg go -q 2bb9d20e471c --debug -v
$ hg go -q 2bb9d20e471c
$ echo y >> a && hg commit -qm "update a"
#if slapi
$ hg push --to master -q
Expand Down

0 comments on commit f957495

Please sign in to comment.