mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
bc7415f5e7
Summary: User reported failures because revlog.opener doesn't have `exists` function. The reason is that sometimes opener is wrapped inside the function. Let's use _realopener instead Test Plan: arc unit Reviewers: #sourcecontrol, mjpieters Reviewed By: mjpieters Subscribers: mjpieters Differential Revision: https://phabricator.intern.facebook.com/D4571659 Signature: t1:4571659:1487267797:a950ab7c88d75573df64ec1964755c054307c7ea
32 lines
646 B
Perl
32 lines
646 B
Perl
|
|
$ mkcommit() {
|
|
> echo "$1" > "$1"
|
|
> hg add "$1"
|
|
> hg ci -m "$1"
|
|
> }
|
|
|
|
$ extpath=`dirname $TESTDIR`
|
|
$ cat >> $HGRCPATH << EOF
|
|
> [extensions]
|
|
> fastpartialmatch=$extpath/hgext3rd/fastpartialmatch.py
|
|
> shelve=
|
|
> [ui]
|
|
> ssh = python "$TESTDIR/dummyssh"
|
|
> EOF
|
|
|
|
$ hg init repo
|
|
$ cd repo
|
|
$ echo 1 > 1
|
|
$ echo 2 > 2
|
|
$ hg add 1 2
|
|
$ hg ci -m 'first'
|
|
$ echo 3 > 2
|
|
$ hg shelve
|
|
shelved as default
|
|
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
$ mkcommit second
|
|
$ hg unshelve
|
|
unshelving change 'default'
|
|
rebasing shelved changes
|
|
rebasing 2:341fd0af395d "changes to: first" (tip)
|