##// END OF EJS Templates
unshelve: forget unknown files after a partial unshelve...
Navaneeth Suresh -
r42961:d684449e default
parent child Browse files
Show More
@@ -1005,8 +1005,8 b' def dounshelve(ui, repo, *shelved, **opt'
1005 restorebranch(ui, repo, branchtorestore)
1005 restorebranch(ui, repo, branchtorestore)
1006 shelvedstate.clear(repo)
1006 shelvedstate.clear(repo)
1007 _finishunshelve(repo, oldtiprev, tr, activebookmark)
1007 _finishunshelve(repo, oldtiprev, tr, activebookmark)
1008 _forgetunknownfiles(repo, shelvectx, addedbefore)
1008 if not ispartialunshelve:
1009 if not ispartialunshelve:
1009 _forgetunknownfiles(repo, shelvectx, addedbefore)
1010 unshelvecleanup(ui, repo, basename, opts)
1010 unshelvecleanup(ui, repo, basename, opts)
1011 finally:
1011 finally:
1012 if tr:
1012 if tr:
@@ -1272,15 +1272,21 b' Abort unshelve while merging (issue5123)'
1272 > B
1272 > B
1273 > C
1273 > C
1274 > EOF
1274 > EOF
1275 $ hg shelve
1275 $ echo > garbage
1276 $ hg st
1277 M foo
1278 ? garbage
1279 $ hg shelve --unknown
1276 shelved as default
1280 shelved as default
1277 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
1281 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
1278 $ cat foo
1282 $ cat foo
1279 B
1283 B
1280 $ hg unshelve -i <<EOF
1284 $ hg unshelve -i <<EOF
1281 > y
1285 > y
1282 > y
1286 > y
1283 > n
1287 > n
1288 > y
1289 > y
1284 > EOF
1290 > EOF
1285 unshelving change 'default'
1291 unshelving change 'default'
1286 rebasing shelved changes
1292 rebasing shelved changes
@@ -1292,15 +1298,28 b' Abort unshelve while merging (issue5123)'
1292 @@ -1,1 +1,2 @@
1298 @@ -1,1 +1,2 @@
1293 +A
1299 +A
1294 B
1300 B
1295 record change 1/2 to 'foo'?
1301 record change 1/3 to 'foo'?
1296 (enter ? for help) [Ynesfdaq?] y
1302 (enter ? for help) [Ynesfdaq?] y
1297
1303
1298 @@ -1,1 +2,2 @@
1304 @@ -1,1 +2,2 @@
1299 B
1305 B
1300 +C
1306 +C
1301 record change 2/2 to 'foo'?
1307 record change 2/3 to 'foo'?
1302 (enter ? for help) [Ynesfdaq?] n
1308 (enter ? for help) [Ynesfdaq?] n
1303
1309
1310 diff --git a/garbage b/garbage
1311 new file mode 100644
1312 examine changes to 'garbage'?
1313 (enter ? for help) [Ynesfdaq?] y
1314
1315 @@ -0,0 +1,1 @@
1316 +
1317 record change 3/3 to 'garbage'?
1318 (enter ? for help) [Ynesfdaq?] y
1319
1320 $ hg st
1321 M foo
1322 ? garbage
1304 $ cat foo
1323 $ cat foo
1305 A
1324 A
1306 B
1325 B
General Comments 0
You need to be logged in to leave comments. Login now