mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 01:39:21 +03:00
4e663d3541
Previously #foo and --branch foo were handled identically. The behavior of #foo hasn't changed, but --branch now works like this: 1) If branchmap is not supported on the remote, the operation fails. 2) If branch is '.', substitute with branch of the working dir parent. 3) If branch exists remotely, its heads are expanded. 4) Otherwise, the operation fails. Tests have been added for the new cases.
6 lines
300 B
Plaintext
6 lines
300 B
Plaintext
http://example.com/no/anchor, branches: (None, [])
|
|
http://example.com/an/anchor, branches: ('foo', [])
|
|
http://example.com/no/anchor/branches, branches: (None, ['foo'])
|
|
http://example.com/an/anchor/branches, branches: ('bar', ['foo'])
|
|
http://example.com/an/anchor/branches-None, branches: ('foo', [])
|