Mercurial > public > mercurial-scm > hg-stable
diff tests/test-subrepo-deep-nested-change.t @ 25615:dc707fb35550
archive: report the node as "{p1node}+" when archiving a dirty wdir()
This is more useful than reporting all 'f's, allowing the archive to be diffed
against a specific revision to see what changed.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 16 Jun 2015 23:14:45 -0400 |
parents | 3ec8351fa6ed |
children | 98064baab877 |
line wrap: on
line diff
--- a/tests/test-subrepo-deep-nested-change.t Mon Jun 15 16:06:17 2015 -0700 +++ b/tests/test-subrepo-deep-nested-change.t Tue Jun 16 23:14:45 2015 -0400 @@ -187,6 +187,14 @@ ../wdir/sub1/sub2/folder/test.txt ../wdir/sub1/sub2/sub2 + $ cat ../wdir/.hg_archival.txt + repo: 7f491f53a367861f47ee64a80eb997d1f341b77a + node: 9bb10eebee29dc0f1201dcf5977b811a540255fd+ + branch: default + latesttag: null + latesttagdistance: 4 + changessincelatesttag: 3 + Attempting to archive 'wdir()' with a missing file is handled gracefully $ rm sub1/sub1 $ rm -r ../wdir @@ -204,6 +212,16 @@ Continue relative path printing + subrepos $ hg update -Cq + $ rm -r ../wdir + $ hg archive -S -r 'wdir()' ../wdir + $ cat ../wdir/.hg_archival.txt + repo: 7f491f53a367861f47ee64a80eb997d1f341b77a + node: 9bb10eebee29dc0f1201dcf5977b811a540255fd + branch: default + latesttag: null + latesttagdistance: 4 + changessincelatesttag: 3 + $ touch sub1/sub2/folder/bar $ hg addremove sub1/sub2 adding sub1/sub2/folder/bar (glob)