##// END OF EJS Templates
config: gather the path to edit through rcutil...
config: gather the path to edit through rcutil Using the common logic helps to reduce potential error when it changes

File last commit:

r46356:f90a5c21 default
r53324:8c509a70 default
Show More
test-narrow-copies.t
74 lines | 1.9 KiB | text/troff | Tads3Lexer
/ tests / test-narrow-copies.t
Augie Fackler
narrow: import experimental extension from narrowhg revision cb51d673e9c5...
r36096
$ . "$TESTDIR/narrow-library.sh"
create full repo
$ hg init master
$ cd master
$ mkdir inside
$ echo inside > inside/f1
$ mkdir outside
$ echo outside > outside/f2
$ hg ci -Aqm 'initial'
$ hg mv outside/f2 inside/f2
$ hg ci -qm 'move f2 from outside'
$ echo modified > inside/f2
$ hg ci -qm 'modify inside/f2'
Martin von Zweigbergk
tests: demonstrate broken copies.pathcopies()...
r40486 $ mkdir outside
$ echo new > outside/f3
$ hg ci -Aqm 'add outside/f3'
Augie Fackler
narrow: import experimental extension from narrowhg revision cb51d673e9c5...
r36096 $ cd ..
Martin von Zweigbergk
tests: demonstrate broken copies.pathcopies()...
r40486 $ hg clone --narrow ssh://user@dummy/master narrow --include inside -r 2
Augie Fackler
narrow: import experimental extension from narrowhg revision cb51d673e9c5...
r36096 adding changesets
adding manifests
adding file changes
added 3 changesets with 3 changes to 2 files
new changesets *:* (glob)
updating to branch default
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ cd narrow
$ hg co 'desc("move f2")'
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ hg status
$ hg diff
$ hg diff --change . --git
diff --git a/inside/f2 b/inside/f2
new file mode 100644
--- /dev/null
+++ b/inside/f2
@@ -0,0 +1,1 @@
+outside
$ hg log --follow inside/f2 -r tip
changeset: 2:bcfb756e0ca9
tag: tip
user: test
date: Thu Jan 01 00:00:00 1970 +0000
summary: modify inside/f2
changeset: 1:5a016133b2bb
user: test
date: Thu Jan 01 00:00:00 1970 +0000
summary: move f2 from outside
Martin von Zweigbergk
tests: demonstrate broken copies.pathcopies()...
r40486 $ echo new > inside/f4
$ hg ci -Aqm 'add inside/f4'
$ hg pull -q
$ hg --config extensions.rebase= rebase -d tip
rebasing 3:4f84b666728c "add inside/f4"
Martin von Zweigbergk
narrow: make copies.pathcopies() filter with narrowspec again...
r40487 saved backup bundle to $TESTTMP/narrow/.hg/strip-backup/4f84b666728c-4269b76e-rebase.hg
Martin von Zweigbergk
tests: demonstrate broken copies._fullcopytracing()...
r40488
$ hg co -q 0
$ echo modified > inside/f1
$ hg ci -qm 'modify inside/f1'
$ echo new > inside/f5
$ hg ci -Aqm 'add inside/f5'
$ hg --config extensions.rebase= rebase -d 'public()' -r .
Martin von Zweigbergk
rebase: change and standarize template for rebase's one-line summary...
r46356 rebasing 6:610b60178c28 tip "add inside/f5"
Martin von Zweigbergk
narrow: fix copies._fullcopytracing() narrowspec filtering in graft case...
r40489 saved backup bundle to $TESTTMP/narrow/.hg/strip-backup/610b60178c28-65716a78-rebase.hg